예제 #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);
 }