public void NormalEmailShouldBeHidden() { string email = "*****@*****.**"; IEMailHiderService provider = new EmailHiderService(); var encoded = provider.HideEmail(email); var actual = "aaa**@aaa**.aaa"; Assert.AreEqual(encoded, actual); }
public void ShortEndEmailShouldBeHiddenOnlyOnlyAtTheStart() { string email = "*****@*****.**"; IEMailHiderService provider = new EmailHiderService(); var encoded = provider.HideEmail(email); var actual = "aaa**@aaa**.aaa"; Assert.AreEqual(encoded, actual); }