public void Issue45()
        {
            var input = CodeGeneratorSteps.LoadResource("Issue45.capnp.bin");

            using (input)
            {
                var frame = Framing.ReadSegments(input);
                var ds    = DeserializerState.CreateRoot(frame);
                var cgr   = CapnpSerializable.Create <CodeGeneratorRequest>(ds);
                Assert.IsTrue(cgr.Nodes.Count > 0);
            }
        }
Exemple #2
0
        static Model.SchemaModel Load(string inputName)
        {
            WireFrame segments;
            var       input = CodeGeneratorSteps.LoadResource(inputName);

            using (input)
            {
                segments = Framing.ReadSegments(input);
            }
            var dec    = DeserializerState.CreateRoot(segments);
            var reader = CodeGeneratorRequest.Reader.Create(dec);
            var model  = Model.SchemaModel.Create(reader);

            return(model);
        }