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"); }
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()); }
public void Returns_Or_Object() { var clause = Are.AnyOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf")); Assert.IsInstanceOfType(clause, typeof(Or)); }