Exemplo n.º 1
0
        public void GivenNumber_IsText_Invoke_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isText = new IsText();

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

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
            //------------Execute Test---------------------------
            var emptyString = new[] { string.Empty };

            result = isText.Invoke(emptyString);
            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void IsText_Invoke_IsText_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new IsText();

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

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