예제 #1
0
        public void CalculateBlockInfoCountsCorrectly(ulong input, int expectedLeadingZeros, int expectedTrailingZeros)
        {
            var blockInfo = BlockInfo.CalulcateBlockInfo(input);

            blockInfo.LeadingZeros.Should().Be(expectedLeadingZeros);
            blockInfo.TrailingZeros.Should().Be(expectedTrailingZeros);
            blockInfo.BlockSize.Should().Be(64 - expectedLeadingZeros - expectedTrailingZeros);
        }