public void CreateOnEmptyListReturnsEmptySet() { ArrayList a = new ArrayList(); IPersistentSet m = PersistentHashSet.create1(a); Expect(m.count(), EqualTo(0)); }
public void CreateOnListReturnsSet() { object[] items = new object[] { 1, "a" }; ArrayList a = new ArrayList(items); IPersistentSet m = PersistentHashSet.create1(a); Expect(m.count(), EqualTo(2)); Expect(m.contains(1)); Expect(m.contains("a")); Expect(m.contains(3), False); }