Exemplo n.º 1
0
        public void IsNotError_HandlesType_ReturnsIsNotErrorType()
        {
            var decisionType = enDecisionType.IsNotError;
            //------------Setup for test--------------------------
            var isNotError = new IsNotError();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(decisionType, isNotError.HandlesType());
        }
Exemplo n.º 2
0
        public void IsNotError_Invoke_IsNotError_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var isNotError = new IsNotError();

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

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
Exemplo n.º 3
0
        public void GivenSomeString_IsNotError_Invoke_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var isNotError = new IsNotError();

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

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