public void IncExAllTest02() { LIST <INT> aList = new LIST <INT>(), bList = new LIST <INT>(), cList = new LIST <INT>(); for (INT i = 1; i <= 5; i++) { aList.Add(i); bList.Add(i + 1); cList.Add(i * 10); } // Returns true as aList contains none of the items of cList var containsVal = aList.ExcludesAll(bList); Console.WriteLine("aList Excludes All bList: " + containsVal.ToString()); Assert.AreEqual(containsVal, false); }
public void IncExAllTest03() { LIST<INT> aList = new LIST<INT>(10), bList = new LIST<INT>(10), cList = new LIST<INT>(10); for (INT i = 1; i <= 5; i++) { aList.Add(i); bList.Add(i + 1); cList.Add(i * 10); } // Returns false as aList contains none of the items of bList var containsVal = aList.ExcludesAll(bList); Console.WriteLine("aList Excludes All bList: " + containsVal.ToString()); Assert.IsTrue(containsVal.Validate()); Assert.AreEqual(containsVal, false); }