public void TestNullSubString() { var function = new EndsWithFunction(); Assert.That(function.Evaluate("a", null), Is.EqualTo(true)); }
public void TestNullSource() { var function = new EndsWithFunction(); Assert.That(function.Evaluate(null, "a"), Is.EqualTo(false)); }
public void TestNotContains() { var function = new EndsWithFunction(); Assert.That(function.Evaluate("abcefg", "d"), Is.EqualTo(false)); }
public void TestNullBoth() { var function = new EndsWithFunction(); Assert.That(function.Evaluate(null, null), Is.EqualTo(true)); }
public void TestAtTheEnd() { var function = new EndsWithFunction(); Assert.That(function.Evaluate("abcdefg", "g"), Is.EqualTo(true)); }