public void IsContains_HandlesType_ReturnsIsContainsType() { var decisionType = enDecisionType.IsContains; //------------Setup for test-------------------------- var isContains = new IsContains(); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual(decisionType, isContains.HandlesType()); }
public void IsContains_Invoke_DoesntContain_ReturnsTrue() { //------------Setup for test-------------------------- var notStartsWith = new IsContains(); string[] cols = new string[2]; cols[0] = "TestData"; cols[1] = "No"; //------------Execute Test--------------------------- bool result = notStartsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsContains_Invoke_DoesContain_ReturnsFalse() { //------------Setup for test-------------------------- var isContains = new IsContains(); string[] cols = new string[2]; cols[0] = "TestData"; cols[1] = "Test"; //------------Execute Test--------------------------- bool result = isContains.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }