Esempio n. 1
0
        public void EmptyWhere()
        {
            var tested = new WhereClause();

            string expected = "";
            string actual = tested.ToQueryString();

            Assert.AreEqual (expected, actual);
        }
Esempio n. 2
0
        public void NotEmptyWhere()
        {
            var tested = new WhereClause();

            var mockCondition = new Mock<ILogicalCondition>();
            mockCondition.Setup (x => x.ToQueryString()).Returns("A");

            tested.Condition = mockCondition.Object;

            string expected = "WHERE A";
            string actual = tested.ToQueryString();

            Assert.AreEqual(expected, actual);
        }