示例#1
0
        public void ControlChangeMessage_writes_correctly_to_file()
        {
            var message = ControlChangeMessage.Create(9, MidiController.Pan, 127);

            message.Write(writer);
            stream.ToArray().Should().Equal(new byte[] { 0xb9, 0x0a, 127 });
        }
示例#2
0
        public void ChannelModeMessages_write_correctly_to_file(MidiController controller)
        {
            var message = ControlChangeMessage.Create(8, controller, 0);

            message.Write(writer);
            stream.ToArray().Should().Equal(new byte[] { 0xb8, (byte)controller, 0 });
        }
示例#3
0
        public void ChannelModeMessages_have_the_proper_type(MidiController controller, Type type)
        {
            var message = ControlChangeMessage.Create(8, controller, 127);

            message.Should().BeOfType(type);
        }