public void EmptyWhere() { var tested = new WhereClause(); string expected = ""; string actual = tested.ToQueryString(); Assert.AreEqual (expected, actual); }
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); }