Example #1
0
        public void AppVersionImplicit()
        {
            AppVersion version = new AppVersion();

              // Берем версию из строки.
              version = "4.3.2.1";
              Assert.AreEqual(version.ToString(), "4.3.2.1");

              // Берем строку из версии.
              string versionString = version;
              Assert.AreEqual(versionString, "4.3.2.1");
        }
Example #2
0
 public void AppVersionToString()
 {
     AppVersion version = new AppVersion(4, 3, 2, 1);
       Assert.IsTrue(version.ToString() == "4.3.2.1");
 }