public void Initialize_PortNotOpen_AllBuffersUnused()
        {
            using (var port = MidiInPortTests.CreateMidiInPort())
            {
                port.BufferManager.Initialize(2, 256);

                Assert.AreEqual(port.BufferManager.BufferCount, port.BufferManager.UnusedBufferCount);
            }
        }
        public void Initialize_OpenState_AllBuffersUsed()
        {
            using (var port = MidiInPortTests.CreateMidiInPort())
            {
                port.BufferManager.Initialize(2, 256);
                port.Open(0);

                Assert.AreEqual(port.BufferManager.BufferCount, port.BufferManager.UsedBufferCount);

                port.Reset();
            }
        }
        public void Initialize_BuffersCreated_BufferSizeMatches()
        {
            using (var port = MidiInPortTests.CreateMidiInPort())
            {
                port.BufferManager.Initialize(2, 256);
                port.Open(0);

                Assert.AreEqual(256, port.BufferManager.BufferSize);

                port.Reset();
            }
        }