public void ShouldBeAbleToReadVersionFromPath() { const string expected = "1.0.1"; var value = ProductInstallationUtilities.ReadVersionFromPath(origin); Assert.AreEqual(expected, value); }
public void ShouldBeAbleToGetCompleteInstallationDirectory() { var installDir = _testAppDir; var filewithparents = @"\x64\locales\ca.pak"; var expected = installDir + filewithparents; var result = ProductInstallationUtilities.FinalizeInstallLocation(origin, installDir); Assert.AreEqual(expected, result); }
public void PushOtherFilesToLibrary(string origin, string destination) { var destFilename = ProductInstallationUtilities.FinalizeInstallLocation(origin, destination); FileLibrary.Add(origin, destFilename); }