예제 #1
0
        public void AddULongMax()
        {
            var slice = new VPackBuilder()
                        .Add(ulong.MaxValue)
                        .Slice();

            Assert.True(slice.IsType(SliceType.UInt));
            Assert.Equal(slice.TypeCode, 0x2f);
            Assert.Equal(slice.Value().GetType(), typeof(ulong));
            Assert.Equal(slice.Value(), ulong.MaxValue);
            Assert.Equal(slice.ToUInt64(), ulong.MaxValue);
        }