Пример #1
0
        public void TestEmptyEmailInput()
        {
            Merge  merge    = new Merge();
            string input    = "";
            string result   = merge.FindDomain(input);
            string expected = string.Empty;

            Assert.AreEqual(expected, result);
        }
Пример #2
0
        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);
        }
Пример #3
0
        public void TestRegexPattern()
        {
            Merge  merge    = new Merge();
            string input    = "*****@*****.**";
            string actual   = merge.FindDomain(input);
            string expected = "erz.be.ch";

            Assert.AreEqual(expected, actual);
        }