public void Parse(string input, int expectedOctaveNumber) { var parsedOctave = Octave.Parse(input); var expectedOctave = Octave.Get(expectedOctaveNumber); Assert.AreEqual(expectedOctave, parsedOctave, "Parsed octave is invalid."); }
public void Parse_Invalid(string input) { Assert.Throws <FormatException>(() => Octave.Parse(input), "Invalid octave parsed."); }