public void SubsetTest() { for (int i = 0; i < 6; i++) { set.Add(i); } ArraySet set1 = new ArraySet(); for (int i = 2; i < 6; i++) { set1.Add(i); } ArraySet set2 = new ArraySet(); for (int i = 2; i < 7; i++) { set2.Add(i); } Assert.AreEqual(true, set.Subset(set1)); Assert.AreEqual(false, set.Subset(set2)); }