Example #1
0
 public void TestNotEqual()
 {
     NxAnd and = new NxAnd();
     and.Append("id1", "id2", OperatorType.NotEqual);
     string expected = "<And><NotEquals leftId=\"id1\" rightId=\"id2\" /></And>";
     string actual = and.Create().OuterXml;
     Assert.AreEqual(expected, actual);
 }
Example #2
0
 public void TestAppend()
 {
     NxAnd and = new NxAnd();
     and.Append("id1", "id2", OperatorType.NotEqual);
     and.Append("id3", "id4", OperatorType.LessThan);
     and.Append(new NxIsTrue("id5"));
     and.Append(new NxIsFalse("id6"));
     string expected = "<And><NotEquals leftId=\"id1\" rightId=\"id2\" /><LessThan leftId=\"id3\" rightId=\"id4\" /><IsTrue valueId=\"id5\" /><IsFalse valueId=\"id6\" /></And>";
     string actual = and.Create().OuterXml;
     Assert.AreEqual(expected, actual);
 }