public void AddBinary() { byte[] expected = new byte[] { 49, 50, 51, 52, 53, 54, 55, 56, 57 }; VPackBuilder builder = new VPackBuilder(); builder.Add(expected); VPackSlice slice = builder.Slice(); Assert.True(slice.IsType(SliceType.Binary)); Assert.Equal(slice.BinaryLength(), expected.Length); Assert.Equal(slice.ToBinary(), expected); Assert.Equal(slice.GetByteSize(), 1 + 4 + expected.Length); }