public void AreEqual_ChordsCollections_NotEqual_Order() { Assert.Throws <AssertionException>(() => MidiAsserts.AreEqual( new[] { new Chord(new Note(SevenBitNumber.MaxValue)), new Chord(new Note(SevenBitNumber.MinValue)) }, new[] { new Chord(new Note(SevenBitNumber.MinValue)), new Chord(new Note(SevenBitNumber.MaxValue)) }, "Chords are equal.")); }
public void AreEqual_NotesCollections_Equal() { MidiAsserts.AreEqual( new[] { new Note(SevenBitNumber.MaxValue) }, new[] { new Note(SevenBitNumber.MaxValue) }, "Notes aren't equal."); }
public void AreEqual_NotesCollections_NotEqual_Length() { Assert.Throws <AssertionException>(() => MidiAsserts.AreEqual( new[] { new Note(SevenBitNumber.MaxValue) { Length = 4 } }, new[] { new Note(SevenBitNumber.MaxValue) { Length = 7 } }, "Notes are equal.")); }
public void AreEqual_NotesCollections_NotEqual_OffVelocity() { Assert.Throws <AssertionException>(() => MidiAsserts.AreEqual( new[] { new Note(SevenBitNumber.MaxValue) { OffVelocity = (SevenBitNumber)4 } }, new[] { new Note(SevenBitNumber.MaxValue) { OffVelocity = (SevenBitNumber)7 } }, "Notes are equal.")); }
public void AreEqual_NotesCollections_NotEqual_Channel() { Assert.Throws <AssertionException>(() => MidiAsserts.AreEqual( new[] { new Note(SevenBitNumber.MaxValue) { Channel = (FourBitNumber)4 } }, new[] { new Note(SevenBitNumber.MaxValue) { Channel = (FourBitNumber)7 } }, "Notes are equal.")); }
public void AreEqual_ChordsCollections_NotEqual_Velocity() { Assert.Throws <AssertionException>(() => MidiAsserts.AreEqual( new[] { new Chord(new Note(SevenBitNumber.MaxValue) { Velocity = (SevenBitNumber)4 }) }, new[] { new Chord(new Note(SevenBitNumber.MaxValue) { Velocity = (SevenBitNumber)7 }) }, "Chords are equal.")); }