public void Static_PrepareUsername_InvalidUsername_ShouldThrowArgumentException(string s) { Assert.Throws <ArgumentException>(() => { AuthTools.PrepareUsername(s); }); }
public void Static_PrepareUsername() { Assert.AreEqual("U.User", AuthTools.PrepareUsername("User"), "Wrong result"); Assert.AreEqual("U.U.User", AuthTools.PrepareUsername("U.User"), "Wrong result"); }
public void Static_PrepareUsername_InvalidUsername(string s) { AuthTools.PrepareUsername(s); }