Ejemplo n.º 1
0
        public void IsNotText_HandlesType_ReturnsIsNotTextType()
        {
            var decisionType = enDecisionType.IsNotText;
            //------------Setup for test--------------------------
            var isNotText = new IsNotText();

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

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

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Ejemplo n.º 3
0
        public void GivenNumber_IsNotText_Invoke_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var isNotText = new IsNotText();

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

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

            result = isNotText.Invoke(emptyString);
            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }