[TestCase("", 0, 0, ExpectedException = typeof(FormatException))]
[TestCase(null, 0, 0, ExpectedException = typeof(NullReferenceException))]
[TestCase("1", 1, 0)]
[TestCase("95.1", 95, 1)]
public void ParseTest(string s,int major, int minor)
{
var code = Code.Parse(s);
Assert.AreEqual(major, code.Major);
Assert.AreEqual(minor, code.Minor);
}