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); }
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); }
public void Empty() { var v = new object(); var ctx = new object(); var writer = new AssertingWriter(ctx); Serializer.Serialize(ref v, ref ctx, writer); }