示例#1
0
        public void Enumerate(LookupArray lookupArray, int[] indexesToAdd)
        {
            foreach (var i in indexesToAdd)
            {
                lookupArray.Occupy(i);
            }

            var lookupArrayIndexes = lookupArray.ToArray();

            CollectionAssert.AreEquivalent(lookupArray, lookupArrayIndexes);
        }
        public void Enumerate(LookupArray lookupArray, int[] indexesToAdd)
        {
            foreach (var i in indexesToAdd)
            {
                lookupArray.Occupy(i);
            }

            var lookupArrayIndexes = lookupArray.ToArray();

            Assert.Equal(lookupArray, lookupArrayIndexes);
        }