public void Text() { // Given var expression = new SubExpression("x", new TextExpression("x")); // When var result = expression.Transform(""); // Then Assert.Equal("", result); }
public void TextMismatch() { // Given var expression = new SubExpression("x", new TextExpression("y")); // When var result = expression.Transform(""); // Then Assert.Null(result); }
public void BackreferenceUndefined() { // Given var expression = new SubExpression(new BackreferenceExpression("foo"), new TextExpression("x")); // When var result = expression.Transform(""); // Then Assert.Null(result); }