public void Test_SubGridTreeBitmapSubGridBitsTests_SumBitRows() { SubGridTreeBitmapSubGridBits bits = new SubGridTreeBitmapSubGridBits(SubGridBitsCreationOptions.Unfilled); Assert.Equal(0, bits.SumBitRows()); bits[0, 0] = true; Assert.NotEqual(bits.SumBitRows(), (1 << SubGridTreeConsts.SubGridTreeDimension) - 1); bits[0, SubGridTreeConsts.SubGridTreeDimensionMinus1] = true; Assert.NotEqual(bits.SumBitRows(), (1 << SubGridTreeConsts.SubGridTreeDimension)); bits.Fill(); Assert.Equal(bits.SumBitRows(), SubGridTreeBitmapSubGridBits.SumBitRowsFullCount); }