示例#1
0
文件: Number6Tests.cs 项目: Tjof/LAB7
        public void Test4Method1()
        {
            string email = "test@test_ru";

            Lab6num4 num4 = new Lab6num4();

            Assert.ThrowsException <ArgumentException>(() => num4.Num4(email), "не обработан почтовый ящик.");
        }
示例#2
0
文件: Number6Tests.cs 项目: Tjof/LAB7
        public void Test4Method2()
        {
            string email    = "*****@*****.**";
            bool   expected = true;

            Lab6num4 num4        = new Lab6num4();
            bool     resultRegex = num4.Num4(email);

            Assert.AreEqual(expected, resultRegex);
        }