Esempio n. 1
0
    public void ToStringTest()
    {
        var condition = new FakeToStringCondition("Condição");

        var sut    = new NotCondition(condition);
        var actual = sut.ToString();

        actual.Should().Be("Not (Condição)");
    }
Esempio n. 2
0
    public void ToStringTest()
    {
        var operand = new FakeToStringCondition("Campo");

        var sut    = new IsNotNullCondition(operand);
        var actual = sut.ToString();

        actual.Should().Be("Campo Is Not Null");
    }
Esempio n. 3
0
    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)");
    }
Esempio n. 4
0
    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");
    }
Esempio n. 5
0
    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");
    }
Esempio n. 6
0
    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);
    }
Esempio n. 7
0
    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");
    }