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()); }
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); }
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); }