Ejemplo n.º 1
0
        public void IsNotEmail_Invoke_IsNotEmail_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isNotEmail = new IsNotEmail();
            var cols       = new string[2];

            cols[0] = "*****@*****.**";
            //------------Execute Test---------------------------
            var result = isNotEmail.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Ejemplo n.º 2
0
        public void GivenSomeString_IsNotEmail_Invoke_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var isNotEmail = new IsNotEmail();
            var cols       = new string[2];

            cols[0] = "something";
            //------------Execute Test---------------------------
            var result = isNotEmail.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }