public void ThrowArgumentNullExceptionWhenArgumentIsNull() { // Arrange var obfuscator = new EmailObfuscator(); // Act // Assert Assert.Throws <ArgumentNullException>(() => obfuscator.Obfuscate(null)); }
public void ObfuscateEmail( string email, string expected) { // Arrange var obfuscator = new EmailObfuscator(); // Act var obfuscated = obfuscator.Obfuscate(email); // Assert Assert.Equal(expected, obfuscated); }
public void TestMethod2() { Assert.AreEqual("Code_warrior [at] foo [dot] ac [dot] uk", EmailObfuscator.Obfuscate("*****@*****.**")); }
public void TestMethod1() { Assert.AreEqual("test [at] 123 [dot] com", EmailObfuscator.Obfuscate("*****@*****.**")); }