コード例 #1
0
        public void SysexMessage_continuation_writes_correctly_to_file()
        {
            var message = new SysexMessage(new byte[] { 0x7d, 0x30, 0x20, 0x10, 0x7f }, continuation: true);

            message.Write(writer);
            stream.ToArray().Should().Equal(new byte[] { 0xf7, 0x05, 0x7d, 0x30, 0x20, 0x10, 0x7f });
        }
コード例 #2
0
        public void SysexMessage_continued_writes_correctly_to_file()
        {
            var message = new SysexMessage(new byte[] { 0x7d, 0x30, 0x20, 0x10 }); // No EOX (F7)

            message.Write(writer);
            stream.ToArray().Should().Equal(new byte[] { 0xf0, 0x04, 0x7d, 0x30, 0x20, 0x10 });
        }