-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'playback-tempo' into develop
- Loading branch information
Showing
26 changed files
with
2,090 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
DryWetMidi.Tests/Interaction/TempoMap/TempoMapManagingUtilitiesTests.ManageTempoMap.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Melanchall.DryWetMidi.Core; | ||
using Melanchall.DryWetMidi.Interaction; | ||
using NUnit.Framework; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Melanchall.DryWetMidi.Tests.Interaction | ||
{ | ||
[TestFixture] | ||
public sealed partial class TempoMapManagingUtilitiesTests | ||
{ | ||
#region Test methods | ||
|
||
[Test] | ||
public void ManageTempoMap_EmptyFile_NoException() => | ||
Assert.DoesNotThrow(() => new MidiFile().ManageTempoMap()); | ||
|
||
[Test] | ||
public void ManageTempoMap_EmptyTrackChunksCollection_NoException() => | ||
Assert.DoesNotThrow(() => new List<TrackChunk>().ManageTempoMap(new TicksPerQuarterNoteTimeDivision())); | ||
|
||
[Test] | ||
public void ManageTempoMap_EmptyTrackChunksCollection_Exception() => | ||
Assert.Throws<ArgumentOutOfRangeException>(() => Array.Empty<TrackChunk>().ManageTempoMap(new TicksPerQuarterNoteTimeDivision())); | ||
|
||
[Test] | ||
public void ManageTempoMap_EmptyEventsCollectionsCollection_NoException() => | ||
Assert.DoesNotThrow(() => new List<EventsCollection>().ManageTempoMap(new TicksPerQuarterNoteTimeDivision())); | ||
|
||
[Test] | ||
public void ManageTempoMap_EmptyEventsCollectionsCollection_Exception() => | ||
Assert.Throws<ArgumentOutOfRangeException>(() => Array.Empty<EventsCollection>().ManageTempoMap(new TicksPerQuarterNoteTimeDivision())); | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.