public void TestEmptyEmailInput() { Merge merge = new Merge(); string input = ""; string result = merge.FindDomain(input); string expected = string.Empty; Assert.AreEqual(expected, result); }
public void TestInvalidEmailInput() { Merge merge = new Merge(); string input = "test.erz.be.ch"; string result = merge.FindDomain(input); string expected = string.Empty; Assert.AreEqual(expected, result); }
public void TestRegexPattern() { Merge merge = new Merge(); string input = "*****@*****.**"; string actual = merge.FindDomain(input); string expected = "erz.be.ch"; Assert.AreEqual(expected, actual); }