public void LargeMsg()
        {
            var      stringWriter = new StringWriter();
            var      streamWriter = new FudgeJSONStreamWriter(context, stringWriter);
            FudgeMsg inMsg        = StandardFudgeMessages.CreateLargeMessage(context);

            streamWriter.WriteMsg(inMsg);

            var msg = new FudgeJSONStreamReader(context, stringWriter.GetStringBuilder().ToString()).ReadMsg();

            FudgeUtils.AssertAllFieldsMatch(inMsg, msg);
        }
        public void LargeMsg()
        {
            var      stringWriter = new StringWriter();
            var      xmlWriter    = new XmlTextWriter(stringWriter);
            var      streamWriter = new FudgeXmlStreamWriter(context, xmlWriter, "msg");
            FudgeMsg inMsg        = StandardFudgeMessages.CreateLargeMessage(context);

            streamWriter.WriteMsg(inMsg);

            string msgString = stringWriter.GetStringBuilder().ToString();
            var    msg       = new FudgeXmlStreamReader(context, msgString).ReadMsg();

            FudgeUtils.AssertAllFieldsMatch(inMsg, msg);
        }
        public void BigMessage()
        {
            var context = new FudgeContext();

            var msg    = StandardFudgeMessages.CreateLargeMessage(context);
            var reader = new FudgeMsgStreamReader(context, msg);
            var writer = new FudgeMsgStreamWriter();

            var pipe = new FudgeStreamPipe(reader, writer);

            pipe.Process();

            var newMsg = writer.DequeueMessage();

            FudgeUtils.AssertAllFieldsMatch(msg, newMsg);
        }