コード例 #1
0
 public void TestVersions()
 {
     VersionResolver.LoadFiles(@"..\..\..\TestData\versions.xml", @"..\..\..\TestData\revisions.xml");
     Assert.AreEqual("1", VersionResolver.Versions["MajorVersion"]);
     Assert.AreEqual("2", VersionResolver.Versions["MinorVersion"]);
     Assert.AreEqual("3", VersionResolver.Versions["Release"]);
     Assert.AreEqual("5", VersionResolver.Versions["Revision"]);
     Assert.AreEqual("abcdef", VersionResolver.Versions["RevisionDetailed"]);
 }
コード例 #2
0
 public void TestBuildAssemblyVersion()
 {
     VersionResolver.LoadFiles(@"..\..\..\TestData\versions.xml", @"..\..\..\TestData\revisions.xml");
     Assert.AreEqual("1.2.3.5", VersionResolver.BuildAssemblyVersion("MajorVersion", "MinorVersion", "Release", "Revision"));
 }
コード例 #3
0
 public void TestVersionsUnexisting()
 {
     VersionResolver.LoadFiles("UnexistingFile");
     Assert.AreEqual("", VersionResolver.Versions["UnexistingProperty"]);
 }