Пример #1
0
        public void UnpackSimpleStructExt()
        {
            var packedAndBroughtBack = new LongBoolShort().Unpack(new LongBoolShort().Pack());

            packedAndBroughtBack.Should().BeEquivalentTo(Packer.NativeUnpack <LongBoolShort>(Packer.NativePack(new LongBoolShort())));
        }
Пример #2
0
        public void CalcSizeNativeExt()
        {
            var nativeSize = new LongBoolShort().CalcSize();

            nativeSize.Should().IsSameOrEqualTo(Packer.NativeCalcSize <LongBoolShort>());
        }