private void MultiSetContains() { bool c; for (int i = 0; i < count; i++) { c = multiSet.Contains(data[i]); } }
public void IndexerSetter() { set[0] = 40; Assert.AreEqual(40, set[0]); Assert.IsFalse(set.Contains(10)); Assert.AreEqual(1, set.CountOf(40)); AssertItemsOrder(); set[0] = 30; Assert.AreEqual(30, set[0]); Assert.IsFalse(set.Contains(40)); Assert.AreEqual(4, set.CountOf(30)); AssertItemsOrder(); set[1] = 30; Assert.AreEqual(30, set[1]); Assert.AreEqual(5, set.CountOf(30)); AssertItemsOrder(); }