Пример #1
0
 public void Static_PrepareUsername_InvalidUsername_ShouldThrowArgumentException(string s)
 {
     Assert.Throws <ArgumentException>(() =>
     {
         AuthTools.PrepareUsername(s);
     });
 }
Пример #2
0
 public void Static_PrepareUsername()
 {
     Assert.AreEqual("U.User", AuthTools.PrepareUsername("User"), "Wrong result");
     Assert.AreEqual("U.U.User", AuthTools.PrepareUsername("U.User"), "Wrong result");
 }
Пример #3
0
 public void Static_PrepareUsername_InvalidUsername(string s)
 {
     AuthTools.PrepareUsername(s);
 }