示例#1
0
        public void Enumeration_Sorted()
        {
            using (var notesManager = new TrackChunk().ManageNotes())
            {
                var notes = notesManager.Notes;

                notes.Add(NoteTestUtilities.GetNoteByTime(123));
                notes.Add(NoteTestUtilities.GetNoteByTime(1));
                notes.Add(NoteTestUtilities.GetNoteByTime(10));
                notes.Add(NoteTestUtilities.GetNoteByTime(45));

                TimedObjectsCollectionTestUtilities.CheckTimedObjectsCollectionTimes(notes, 1, 10, 45, 123);
            }
        }
示例#2
0
        public void ManageTimedEvents_EnumerationSorted()
        {
            using (var timedEventsManager = new TrackChunk().ManageTimedEvents())
            {
                var events = timedEventsManager.Events;

                events.AddEvent(new NoteOnEvent(), 123);
                events.AddEvent(new NoteOnEvent(), 1);
                events.AddEvent(new NoteOnEvent(), 10);
                events.AddEvent(new NoteOnEvent(), 45);

                TimedObjectsCollectionTestUtilities.CheckTimedObjectsCollectionTimes(events, 1, 10, 45, 123);
            }
        }
示例#3
0
        public void Enumeration_Sorted()
        {
            using (var chordsManager = new TrackChunk().ManageChords())
            {
                var chords = chordsManager.Chords;

                chords.Add(ChordTestUtilities.GetChordByTime(123));
                chords.Add(ChordTestUtilities.GetChordByTime(1));
                chords.Add(ChordTestUtilities.GetChordByTime(10));
                chords.Add(ChordTestUtilities.GetChordByTime(45));

                TimedObjectsCollectionTestUtilities.CheckTimedObjectsCollectionTimes(chords, 1, 10, 45, 123);
            }
        }