public void ToStringTest() { var condition = new FakeToStringCondition("Condição"); var sut = new NotCondition(condition); var actual = sut.ToString(); actual.Should().Be("Not (Condição)"); }
public void ToStringTest() { var operand = new FakeToStringCondition("Campo"); var sut = new IsNotNullCondition(operand); var actual = sut.ToString(); actual.Should().Be("Campo Is Not Null"); }
public void ToStringTest() { var left = new FakeToStringCondition("Esquerda"); var right = new FakeToStringCondition("Direita"); var sut = new OrCondition(left, right); var actual = sut.ToString(); actual.Should().Be("(Esquerda) Or (Direita)"); }
public void ToStringTest() { var left = new FakeToStringCondition("Valor1"); var right = new FakeToStringCondition("Valor2"); var sut = new LowerThanCondition(left, right); var actual = sut.ToString(); actual.Should().Be("Valor1 < Valor2"); }
public void ToStringTest() { var left = new FakeToStringCondition("Valor1"); var right = new FakeToStringCondition("Valor2"); var sut = new NotEqualsToCondition(left, right); var actual = sut.ToString(); actual.Should().Be("Valor1 != Valor2"); }
public void ToStringTest(string expectedExpr, string operandExpr, params string[] valuesExpr) { var operand = new FakeToStringCondition(operandExpr); var valueList = valuesExpr.Select(i => new FakeToStringCondition(i)).ToList(); var sut = new NotInCondition(operand, valueList); var actual = sut.ToString(); actual.Should().Be(expectedExpr); }
public void ToStringTest() { var operand = new FakeToStringCondition("Operando"); var min = new FakeToStringCondition("Minimo"); var max = new FakeToStringCondition("Maximo"); var sut = new BetweenCondition(operand, min, max); var actual = sut.ToString(); actual.Should().Be("Operando Between Minimo And Maximo"); }