Beispiel #1
0
        public void IsNotNumeric_HandlesType_ReturnsIsNotNumericType()
        {
            var decisionType = enDecisionType.IsNotNumeric;
            //------------Setup for test--------------------------
            var isNotNumeric = new IsNotNumeric();

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

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

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

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

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