public void GetAbsSemitonesDifferenceNotesZero() { int diff = Operators.GetAbsSemitonesDifference(Note.A, Note.A); Assert.AreEqual(0, diff); }
public void GetAbsSemitonesDifferenceNotesMultipleSemitones() { int diff = Operators.GetAbsSemitonesDifference(Note.Fsharp, Note.Dsharp); Assert.AreEqual(3, diff); }
public void GetAbsSemitonesDifferenceNotesNegativeMultipleSemitones() { int diff = Operators.GetAbsSemitonesDifference(Note.G, Note.B); Assert.AreEqual(8, diff); }
public void GetAbsSemitonesDifferenceNotesNegativeOneSemitone() { int diff = Operators.GetAbsSemitonesDifference(Note.A, Note.Asharp); Assert.AreEqual(11, diff); }