예제 #1
0
 public void ParseTwoNumbers()
 {
     Version v = new Version("1.2");
     Assert.AreEqual("1.2", v.ToString());
 }
예제 #2
0
 public void ParseTextVersion()
 {
     Version v = new Version("1.2b3");
     Assert.AreEqual("1.2b3", v.ToString());
 }
예제 #3
0
 public void ParseDebianVersion2()
 {
     Version v = new Version("1.2-3.4d");
     Assert.AreEqual("1.2-3.4d", v.ToString());
 }
예제 #4
0
 public void ParseSingleNumber()
 {
     Version v = new Version("1");
     Assert.AreEqual("1", v.ToString());
 }
예제 #5
0
 public void ParseDebianVersion()
 {
     Version v = new Version("1.2.3-4");
     Assert.AreEqual("1.2.3-4", v.ToString());
 }