public void CaseSetup()
        {
            _interpreter = new TestDelimiterInterpreter();
            _context     = (DelimitedMessageContext)_interpreter.CreateContext();

            // Extended properties
            _context.StartFound = false;
        }
        public void ParseHtmlMessageAndUseHtmlInterpreter()
        {
            // Arrange
            _interpreter = HtmlInterpreter.Instance;
            _context     = (DelimitedMessageContext)_interpreter.CreateContext();

            var text = Encoding.UTF8.GetBytes(Input);

            // Act
            BinaryMessage published = null;

            Array.Copy(text, 0, _context.ReadBuffer, _context.CurrentIndex, text.Length);
            _interpreter.ProcessReadBytes(_context, text.Length, m => published = m);

            // Assert
            Assert.NotNull(published);
            Assert.AreEqual(published.Payload, Encoding.UTF8.GetBytes(Output));
        }
        /// <summary>
        /// Start reading shit
        /// </summary>
        public void StartReading()
        {
            var context = _interpreter.CreateContext();

            BeginRead(context);
        }