Ejemplo n.º 1
0
        public void IsNumeric_HandlesType_ReturnsIsNumericType()
        {
            var decisionType = enDecisionType.IsNumeric;
            //------------Setup for test--------------------------
            var isNumeric = new IsNumeric();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(decisionType, isNumeric.HandlesType());
        }
Ejemplo n.º 2
0
        public void IsNumeric_Invoke_IsNumeric_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new IsNumeric();

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

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
Ejemplo n.º 3
0
        public void GivenSomeString_IsNumeric_Invoke_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isNumeric = new IsNumeric();

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

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