示例#1
0
        public void ShouldRemoveEventFromMapAfterUse()
        {
            //Actually, I'm not sure the event *should* be removed from the map.  It's an artificial
            //requirement because the EventMap is based on a Queue.  Ideally it would be based on some type
            //of tree.

            EventMap map = new EventMap();
            MidiEvent midiEvent = new MidiEvent();
            midiEvent.deltaFrames = 1;
            map.Add(midiEvent);

            Assert.AreEqual(1, map.Count);
            map.Next();
            Assert.AreEqual(0, map.Count);
        }