Ejemplo n.º 1
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.º 2
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);
        }