public void when_set_is_empty_popany_is_not_applicable(IntSet set) { Assume.That(set.IsEmpty); MutableIntSet editedSet = set.EditCopy(); int value = editedSet.PopAny(); }
public void set_has_correct_content_after_popany_value(IntSet set) { Assume.That(!set.IsEmpty); MutableIntSet editedSet = set.EditCopy(); int initialCount = editedSet.Count; int value = editedSet.PopAny(); int finalCount = editedSet.Count; Assert.IsFalse(editedSet.Contains(value)); Assert.AreEqual(initialCount, finalCount + 1); }