Пример #1
0
        public void Test_SubGridTreeBitmapSubGridBitsTests_XORWith()
        {
            SubGridTreeBitmapSubGridBits bits1 = new SubGridTreeBitmapSubGridBits(SubGridBitsCreationOptions.Filled);
            SubGridTreeBitmapSubGridBits bits2 = new SubGridTreeBitmapSubGridBits(SubGridBitsCreationOptions.Unfilled);

            SubGridTreeBitmapSubGridBits result = new SubGridTreeBitmapSubGridBits(SubGridBitsCreationOptions.Unfilled);

            result.XorWith(bits2);
            Assert.True(result.IsEmpty());

            result.XorWith(bits1);
            Assert.True(result.IsFull());

            result.XorWith(bits2);
            Assert.True(result.IsFull());

            result.XorWith(bits1);
            Assert.True(result.IsEmpty());
        }