public void Flush(int delay, bool noreply)
        {
            m_builder
            .Reset()
            .WriteOperation(RequestOperation.Flush);

            if (noreply)
            {
                m_builder.WriteNoReply();
            }

            m_builder.WriteDelay(delay);
        }
        public void WriteDelay()
        {
            // Arrange
            string result = null;

            m_mockBinaryWriter.Setup(writer => writer.Write(It.IsAny <byte[]>(), 0, It.IsAny <int>()))
            .Callback <byte[], int, int>((b, i, c) =>
                                         result = Encoding.ASCII.GetString(b, i, c - 2)).Returns(0);

            // Act
            m_builder.WriteDelay(1234567890);

            // Assert
            m_builder.WriteTo(m_mockBinaryWriter.Object);
            Assert.Equal(" 1234567890", result);
        }