Exemplo n.º 1
0
 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"));
 }
Exemplo n.º 2
0
 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"));
 }
Exemplo n.º 3
0
 public void Password_IsEscapedInUri_IsUnescaped()
 {
     var api = new HgResumeRestApiServer("http://*****:*****@resumable.languageforge.com/projects/kyu-dictionary");
     Assert.That(api.Password, Is.EqualTo("pass:word"));
 }
Exemplo n.º 4
0
 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"));
 }