Exemplo n.º 1
0
 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."));
 }
Exemplo n.º 2
0
 public void AreEqual_NotesCollections_Equal()
 {
     MidiAsserts.AreEqual(
         new[] { new Note(SevenBitNumber.MaxValue) },
         new[] { new Note(SevenBitNumber.MaxValue) },
         "Notes aren't equal.");
 }
Exemplo n.º 3
0
 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."));
 }
Exemplo n.º 4
0
 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."));
 }
Exemplo n.º 5
0
 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."));
 }
Exemplo n.º 6
0
 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."));
 }