public void OMVVersion_Parse_Exception(string val) { Assert.ThrowsException <ArgumentException>(() => { var v = OMVVersion.Parse(val); }); }
public void OMVVersion_Parse_NullException() { Assert.ThrowsException <ArgumentNullException>(() => { var v = OMVVersion.Parse(null); }); }
public void OMVVersion_Parse() { var v = OMVVersion.Parse("1.2.3"); Assert.IsNotNull(v); Assert.AreEqual(1, v.Major); Assert.AreEqual(2, v.Minor); Assert.AreEqual(3, v.Build); }