示例#1
0
 public void NewAccount_WithValidParams_ShouldSetProperties()
 {
     var account = new Account("test", "user", "password");
     Assert.That(account.Username,Is.EqualTo("user"));
     Assert.That(account.Password,Is.EqualTo("password"));
     Assert.That(account.Subdomain,Is.EqualTo("test"));
 }
示例#2
0
 public void NewAccount_WithSubdomain_ShouldReturnFormattedUrl()
 {
     var account = new Account("test", "user", "password");
     Assert.That(account.LitmusBaseUrl,Is.EqualTo("https://test.litmus.com/"));
 }
示例#3
0
 public void NewAccount_WithEmptySubdomain_ShouldThrow()
 {
     var account = new Account(null, "user", "password");
 }
示例#4
0
 public void NewAccount_WithEmptyUser_ShouldThrow()
 {
     var account = new Account("test", null, "password");
 }
示例#5
0
 public void NewAccount_WithEmptyPassowrd_ShouldThrow()
 {
     var account = new Account("test", "user", null);
 }