CSMSL.Tests.Util.Collections.SortedMaxSizedContainerTestFixture.SortedMaxSizedContainerRemoveNonExistentItemCorrectCollection C# (CSharp) Method

SortedMaxSizedContainerRemoveNonExistentItemCorrectCollection() private method

        public void SortedMaxSizedContainerRemoveNonExistentItemCorrectCollection()
        {
            SortedMaxSizedContainer<int> container = new SortedMaxSizedContainer<int>(5) { 7, 6, 5, 4, 3, 2, 1 };
            container.Remove(8);
            int[] data = container.ToArray();
            Assert.AreEqual(data, new[] { 1, 2, 3, 4, 5 });
        }