コード例 #1
0
        public void NotRegEx_HandlesType_ReturnsNotRegExType()
        {
            var decisionType = enDecisionType.NotRegEx;
            //------------Setup for test--------------------------
            var notRegEx = new NotRegEx();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(decisionType, notRegEx.HandlesType());
        }
コード例 #2
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);
        }
コード例 #3
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);
        }