Beispiel #1
0
        public void IsNotEmail_HandlesType_ReturnsIsNotEmailType()
        {
            var decisionType = enDecisionType.IsNotEmail;
            //------------Setup for test--------------------------
            var isNotEmail = new IsNotEmail();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(decisionType, isNotEmail.HandlesType());
        }
Beispiel #2
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);
        }
Beispiel #3
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);
        }