예제 #1
0
 public void OMVVersion_Parse_Exception(string val)
 {
     Assert.ThrowsException <ArgumentException>(() =>
     {
         var v = OMVVersion.Parse(val);
     });
 }
예제 #2
0
 public void OMVVersion_Parse_NullException()
 {
     Assert.ThrowsException <ArgumentNullException>(() =>
     {
         var v = OMVVersion.Parse(null);
     });
 }
예제 #3
0
        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);
        }