private void DoTest(int collectionSize, int indexOfInvalidMapPoint) { _subjectUnderTest = new BandMapPointCollection(); var mapPoints = CreateTestData(collectionSize); MakeInvalid(mapPoints[indexOfInvalidMapPoint]); PopulateCollection(mapPoints); Assert.AreEqual(_subjectUnderTest.Count(), collectionSize - 1); Assert.IsFalse(_subjectUnderTest.Contains(mapPoints[indexOfInvalidMapPoint])); }