public void CanConstructModes(int shift, Mode expected) { Note[] cMajor = "C D E F G A B".Split(" ").Select(N).ToArray(); Note[] shifted = cMajor.Skip(shift).Concat(cMajor.Take(shift)).ToArray(); Interval[] intervals = shifted.Select(n => Interval.Between(shifted[0], n)).ToArray(); Assert.Equal(expected.Intervals, intervals); }
public void CanComparePitches(Interval interval, Pitch bottom, Pitch top) { Assert.Equal(interval, Interval.Between(bottom, top)); }
public void CanCompareNotes(Interval interval, Note bottom, Note top) { Assert.Equal(interval, Interval.Between(bottom, top)); }