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"]); }
public void TestBuildAssemblyVersion() { VersionResolver.LoadFiles(@"..\..\..\TestData\versions.xml", @"..\..\..\TestData\revisions.xml"); Assert.AreEqual("1.2.3.5", VersionResolver.BuildAssemblyVersion("MajorVersion", "MinorVersion", "Release", "Revision")); }
public void TestVersionsUnexisting() { VersionResolver.LoadFiles("UnexistingFile"); Assert.AreEqual("", VersionResolver.Versions["UnexistingProperty"]); }