コード例 #1
0
            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");
            }
コード例 #2
0
            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());
            }
コード例 #3
0
            public void Returns_And_Object()
            {
                var clause = Are.AreAllOfTheseTrue(Column.Named("Foo").IsEqualTo(12), Column.Named("Bar").IsGreaterThan("asdf"));

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