public void IsEndsWith_HandlesType_ReturnsIsEndsWithType()
        {
            var expected = enDecisionType.IsEndsWith;
            //------------Setup for test--------------------------
            var isEndsWith = new IsEndsWith();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(expected, isEndsWith.HandlesType());
        }
        public void IsEndsWith_Invoke_DoesntEndWith_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsEndsWith();

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

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Example #3
0
        public void IsEndsWith_Invoke_DoesEndWith_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsEndsWith();
            var cols     = new string[2];

            cols[0] = "TestData";
            cols[1] = "Data";
            //------------Execute Test---------------------------
            var result = endsWith.Invoke(cols);

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