Пример #1
0
 public void Transpose_Down_OutOfRange()
 {
     Assert.ThrowsException <ArgumentOutOfRangeException>(() =>
     {
         NoteDefinition.Get(SevenBitNumber.MinValue)
         .Transpose(IntervalDefinition.GetDown(SevenBitNumber.MaxValue));
     });
 }
Пример #2
0
        public void Transpose_Down_Max()
        {
            var expectedNoteDefinition = NoteDefinition.Get(SevenBitNumber.MinValue);
            var actualNoteDefinition   = NoteDefinition.Get(SevenBitNumber.MaxValue)
                                         .Transpose(IntervalDefinition.GetDown(SevenBitNumber.MaxValue));

            Assert.AreEqual(expectedNoteDefinition, actualNoteDefinition);
        }
Пример #3
0
        public void Transpose_Down()
        {
            var expectedNoteDefinition = NoteDefinition.Get((SevenBitNumber)25);
            var actualNoteDefinition   = NoteDefinition.Get((SevenBitNumber)35)
                                         .Transpose(IntervalDefinition.FromHalfSteps(-10));

            Assert.AreEqual(expectedNoteDefinition, actualNoteDefinition);
        }
Пример #4
0
 public void CheckReferences()
 {
     Assert.IsTrue(ReferenceEquals(IntervalDefinition.FromHalfSteps(10), IntervalDefinition.FromHalfSteps(10)));
 }
Пример #5
0
 public void GetDown_Up()
 {
     Assert.AreEqual(IntervalDirection.Up, IntervalDefinition.GetDown(SevenBitNumber.MaxValue).Up().Direction);
 }
Пример #6
0
 public void GetUp_Down()
 {
     Assert.AreEqual(IntervalDirection.Down, IntervalDefinition.GetUp(SevenBitNumber.MaxValue).Down().Direction);
 }