Beispiel #1
0
        public void IsNotDate_HandlesType_ReturnsIsNotDateType()
        {
            var decisionType = enDecisionType.IsNotDate;
            //------------Setup for test--------------------------
            var isNotDate = new IsNotDate();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(decisionType, isNotDate.HandlesType());
        }
Beispiel #2
0
        public void IsNotDate_Invoke_IsNotDate_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new IsNotDate();
            var cols          = new string[2];

            cols[0] = "01/12/2000";
            //------------Execute Test---------------------------
            var result = notStartsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Beispiel #3
0
        public void GivenSomeString_IsNotDate_Invoke_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isNotDate = new IsNotDate();
            var cols      = new string[2];

            cols[0] = "Yersteday";
            //------------Execute Test---------------------------
            var result = isNotDate.Invoke(cols);

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