Esempio n. 1
0
        public void Class()
        {
            var v   = new OneFieldClass <bool>(true);
            var ctx = new object();

            var writer = new AssertingWriter(ctx, F1, Manifests.BoolType, 1);

            Serializer.Serialize(ref v, ref ctx, writer);
        }
Esempio n. 2
0
        static void Run <T>(T value, byte[] expected)
        {
            var v   = new OneFieldStruct <T>(value);
            var ctx = new object();

            var writer = new AssertingWriter(ctx, expected);

            Serializer.Serialize(ref v, ref ctx, writer);
        }
Esempio n. 3
0
        public void Empty()
        {
            var v   = new object();
            var ctx = new object();

            var writer = new AssertingWriter(ctx);

            Serializer.Serialize(ref v, ref ctx, writer);
        }