Esempio n. 1
0
        public void ConvertToBaseMessage_CorrectBytesMessage_CorrectResult()
        {
            var message = new BytesMessage();

            var result = message.ConvertToBaseMessage();

            Assert.Multiple(() =>
            {
                var bytesMessage = (Messaging.Messages.BytesMessage)result;
                Assert.That(bytesMessage.Body[0] == 97);
                Assert.That(bytesMessage.Body[1] == 98);
                Assert.That(bytesMessage.Body[2] == 99);
            });
        }