public void A_Not_Clause() { var columnEquals12 = new Column("column").IsEqualTo(12); var myClause = new Not(columnEquals12); Assert.AreEqual<string>("NOT (column = '12')", myClause.ToString()); }
public void Initializes_ToString_To_Not_Plus_Parantheses_Plus_Clause_ToString() { var myClause = new Clause("asdF"); var myNot = new Not(myClause); Assert.AreEqual<string>(String.Format("NOT ({0})", myClause), myNot.ToString()); }