public void Transpose_Down_OutOfRange() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => { NoteDefinition.Get(SevenBitNumber.MinValue) .Transpose(IntervalDefinition.GetDown(SevenBitNumber.MaxValue)); }); }
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); }
public void Transpose_Down() { var expectedNoteDefinition = NoteDefinition.Get((SevenBitNumber)25); var actualNoteDefinition = NoteDefinition.Get((SevenBitNumber)35) .Transpose(IntervalDefinition.FromHalfSteps(-10)); Assert.AreEqual(expectedNoteDefinition, actualNoteDefinition); }
public void CheckReferences() { Assert.IsTrue(ReferenceEquals(IntervalDefinition.FromHalfSteps(10), IntervalDefinition.FromHalfSteps(10))); }
public void GetDown_Up() { Assert.AreEqual(IntervalDirection.Up, IntervalDefinition.GetDown(SevenBitNumber.MaxValue).Up().Direction); }
public void GetUp_Down() { Assert.AreEqual(IntervalDirection.Down, IntervalDefinition.GetUp(SevenBitNumber.MaxValue).Down().Direction); }