예제 #1
0
        public void IsContains_HandlesType_ReturnsIsContainsType()
        {
            var decisionType = enDecisionType.IsContains;
            //------------Setup for test--------------------------
            var isContains = new IsContains();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(decisionType, isContains.HandlesType());
        }
예제 #2
0
        public void IsContains_Invoke_DoesntContain_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new IsContains();

            string[] cols = new string[2];
            cols[0] = "TestData";
            cols[1] = "No";
            //------------Execute Test---------------------------
            bool result = notStartsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
예제 #3
0
        public void IsContains_Invoke_DoesContain_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isContains = new IsContains();

            string[] cols = new string[2];
            cols[0] = "TestData";
            cols[1] = "Test";
            //------------Execute Test---------------------------
            bool result = isContains.Invoke(cols);

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