Пример #1
0
        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]));
        }
Пример #2
0
        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]));
        }