public void MinorPentatonicScaleTest() { var scale = ScaleLibrary.GetScale(Pitch.C, ScaleType.MinorPentatonic).ToList(); Assert.AreEqual(5, scale.Count); Assert.AreEqual(Pitch.C, scale[0]); Assert.AreEqual(Pitch.DSharp, scale[1]); Assert.AreEqual(Pitch.F, scale[2]); Assert.AreEqual(Pitch.G, scale[3]); Assert.AreEqual(Pitch.ASharp, scale[4]); }
public void MinorScaleTest() { var scale = ScaleLibrary.GetScale(Pitch.C, ScaleType.Minor).ToList(); Assert.AreEqual(7, scale.Count); Assert.AreEqual(Pitch.C, scale[0]); Assert.AreEqual(Pitch.D, scale[1]); Assert.AreEqual(Pitch.DSharp, scale[2]); Assert.AreEqual(Pitch.F, scale[3]); Assert.AreEqual(Pitch.G, scale[4]); Assert.AreEqual(Pitch.GSharp, scale[5]); Assert.AreEqual(Pitch.ASharp, scale[6]); }
public void MajorScaleTest() { var scale = ScaleLibrary.GetScale(Pitch.D, ScaleType.Major).ToList(); Assert.AreEqual(7, scale.Count); Assert.AreEqual(Pitch.D, scale[0]); Assert.AreEqual(Pitch.E, scale[1]); Assert.AreEqual(Pitch.FSharp, scale[2]); Assert.AreEqual(Pitch.G, scale[3]); Assert.AreEqual(Pitch.A, scale[4]); Assert.AreEqual(Pitch.B, scale[5]); Assert.AreEqual(Pitch.CSharp, scale[6]); }