コード例 #1
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);
        }
コード例 #2
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);
        }