public bool Remove_IntValue_CorrectedResult(int[] values, int value) { AddValues(values); _intSet.Remove(value); return(_intSet.Contains(value)); }
public void TestRemoves() { var set = new BinaryTreeSet <int>(); set.Add(1); Assert.IsTrue(set.Remove(1));; Assert.AreEqual(0, set.Count);; }
public void TestRemovesWihDeepTree() { var set = new BinaryTreeSet <string>(); set.Add("D"); set.Add("C"); set.Add("B"); set.Add("G"); set.Add("E"); set.Add("F"); Assert.IsTrue(set.Remove("D"));; Assert.AreEqual(5, set.Count);; }
public void TestRemoveNotAdded() { var set = new BinaryTreeSet <int>(); Assert.IsFalse(set.Remove(1));; }