public void IndexBuilderByte() { var number = (byte)123; var builder = new ByteIndexBuilder <byte>(); var level0Index = builder.Build(number, 0); Assert.Equal(new int[] { }, level0Index); var level1Index = builder.Build(number, 1); Assert.Equal(new[] { 1 }, level1Index); var level3Index = builder.Build(number, 3); Assert.Equal(new[] { 1, 2, 3 }, level3Index); var level10Index = builder.Build(number, 10); Assert.Equal(new[] { 1, 2, 3 }, level10Index); }
public void IndexBuilderByte() { var number = (byte)123; var builder = new ByteIndexBuilder<byte>(); var level0Index = builder.Build(number, 0); Assert.Equal(new int[] { }, level0Index); var level1Index = builder.Build(number, 1); Assert.Equal(new[] { 1 }, level1Index); var level3Index = builder.Build(number, 3); Assert.Equal(new[] { 1, 2, 3 }, level3Index); var level10Index = builder.Build(number, 10); Assert.Equal(new[] { 1, 2, 3 }, level10Index); }