public void Returns_Clause_Containing_The_Word_And_Once_For_Two_Clauses() { var clause = Are.AreAllOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf")); StringAssert.Contains(clause.ToString(), "AND"); }
public void Returns_Clause_With_Two_Ands_For_Three_Clauses() { var clause = Are.AreAllOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf"), Column.Named("Baz").IsLessThan(4.2)); Assert.AreEqual <int>(3, Regex.Split(clause.ToString(), "AND").Count()); }
public void Returns_And_Object() { var clause = Are.AreAllOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf")); Assert.IsInstanceOfType(clause, typeof(And)); }