예제 #1
0
        public void NotRegEx_Invoke_NotRegEx_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new NotRegEx();
            var cols          = new string[2];

            cols[0] = "324";
            cols[1] = "d";
            //------------Execute Test---------------------------
            var result = notStartsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
예제 #2
0
        public void GivenSomeString_NotRegEx_Invoke_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var notRegEx = new NotRegEx();
            var cols     = new string[2];

            cols[0] = "Number 5 should";
            cols[1] = "d";
            //------------Execute Test---------------------------
            var result = notRegEx.Invoke(cols);

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