public void IsEndsWith_Invoke_DoesntEndWith_ReturnsFalse() { //------------Setup for test-------------------------- var endsWith = new IsEndsWith(); string[] cols = new string[2]; cols[0] = "TestData"; cols[1] = "No"; //------------Execute Test--------------------------- bool result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsEndsWith_Invoke_DoesEndWith_ReturnsTrue() { //------------Setup for test-------------------------- var endsWith = new IsEndsWith(); var cols = new string[2]; cols[0] = "TestData"; cols[1] = "Data"; //------------Execute Test--------------------------- var result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }