public void CanFindABlackNoteChord(string chordName, Note expectedRootNote, string expectedShape) { var finder = new ChordFinder(); var chord = finder.GetChord(chordName); Assert.That(chord.RootNote, Is.EqualTo(expectedRootNote)); Assert.That(chord.ChordShape.Names, Contains.Item(expectedShape)); }
public void HandlesWhenTheShapeCannotBeParsed(string chordName) { var finder = new ChordFinder(); Assert.Throws <ChordNotFoundException>(() => finder.GetChord(chordName)); }