Beispiel #1
0
            public void Returns_Clause_With_Word_Or_In_It()
            {
                var clause = Are.AnyOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf"));

                StringAssert.Contains(clause.ToString(), "OR");
            }
Beispiel #2
0
            public void Returns_Object_With_Two_Ors_For_Three_Parameters()
            {
                var clause = Are.AnyOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf"), Column.Named("Baz").IsLessThan(4.2));

                Assert.AreEqual <int>(3, Regex.Split(clause.ToString(), "OR").Count());
            }
Beispiel #3
0
            public void Returns_Or_Object()
            {
                var clause = Are.AnyOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf"));

                Assert.IsInstanceOfType(clause, typeof(Or));
            }