public void IsMatchWithColumnIndexNegativeReturnsFalse() { var matcher = new CellMatcher(-1, new Regex(".*")); Assert.False(matcher.IsMatch(new string[] { "Hello, World" })); }
public void IsMatchWithRowThatDoesNotMatchExpressionReturnsFalse() { var matcher = new CellMatcher(0, new Regex("xxx")); Assert.False(matcher.IsMatch(new string[] { "Hello, World" })); }
public void IsMatchWithNonZeroColumnIndexMatchesAgainstCorrectField() { var matcher = new CellMatcher(1, new Regex("xxx")); Assert.True(matcher.IsMatch(new string[] { "Hello, World", "xxx", "Hello, World" })); }
public void IsMatchWithRowThatMatchesExpressionReturnsTrue() { var matcher = new CellMatcher(0, new Regex(".*")); Assert.True(matcher.IsMatch(new string[] { "Hello, World" })); }