Exemplo n.º 1
0
        public void ToStringEscapeQuotesTest()
        {
            LessThanOrEqualToString condition = new LessThanOrEqualToString()
            {
                Field = "VENDORNAME",
                Value = "Bob's Pizza, Inc.",
            };

            Assert.Equal("VENDORNAME <= 'Bob\'s Pizza, Inc.'", condition.ToString());
        }
Exemplo n.º 2
0
        public void ToStringTest()
        {
            LessThanOrEqualToString condition = new LessThanOrEqualToString()
            {
                Field = "VENDORID",
                Value = "V1234",
            };

            Assert.Equal("VENDORID <= 'V1234'", condition.ToString());
        }
Exemplo n.º 3
0
        public void ToStringNotTest()
        {
            LessThanOrEqualToString condition = new LessThanOrEqualToString()
            {
                Negate = true,
                Field  = "VENDORID",
                Value  = "V1234",
            };

            Assert.Equal("NOT VENDORID <= 'V1234'", condition.ToString());
        }