public void Username_IsEscapedInUri_IsUnescaped()
 {
     var api = new HgResumeRestApiServer("http://user%3aname:[email protected]/projects/kyu-dictionary");
     Assert.That(api.UserName, Is.EqualTo("user:name"));
 }
 public void Constructor_languageForgeUrl_IdentityAndProjectIdSetCorrectly()
 {
     var api = new HgResumeRestApiServer("http://hg.languageforge.com/projects/kyu-dictionary");
     Assert.That(api.Host, Is.EqualTo("hg.languageforge.com"));
     Assert.That(api.ProjectId, Is.EqualTo("kyu-dictionary"));
 }
 public void Password_IsEscapedInUri_IsUnescaped()
 {
     var api = new HgResumeRestApiServer("http://*****:*****@resumable.languageforge.com/projects/kyu-dictionary");
     Assert.That(api.Password, Is.EqualTo("pass:word"));
 }
 public void Constructor_languageDepotUrl_IdentityAndProjectIdSetCorrectly()
 {
     var api = new HgResumeRestApiServer("http://hg-private.languagedepot.org/kyu-dictionary");
     Assert.That(api.Host, Is.EqualTo("hg-private.languagedepot.org"));
     Assert.That(api.ProjectId, Is.EqualTo("kyu-dictionary"));
 }