public void ShouldNotFailIfTryingToRemoveNotExistingSequence() { var group = new SequenceGroup(); group.Add(new Sequence()); group.Add(new Sequence()); group.remove(new Sequence()); }
public void ShouldRemoveSequenceFromGroup() { var sequenceThree = new Sequence(3L); var sequenceSeven = new Sequence(7L); var sequenceGroup = new SequenceGroup(); sequenceGroup.Add(sequenceSeven); sequenceGroup.Add(sequenceThree); Assert.AreEqual(sequenceThree.Value, sequenceGroup.Value); Assert.True(sequenceGroup.remove(sequenceThree)); Assert.AreEqual(sequenceSeven.Value, sequenceGroup.Value); Assert.AreEqual(1, sequenceGroup.Size); }