public void TestMissingManifestFile() { var manifestRootDir = TemporaryDirectory; var manifestPath = Path.Combine(manifestRootDir, AppDeployment.DeploymentManifestFileName); File.WriteAllText(manifestPath, AssemblyHelper.GetAssemblyLocation(Assembly.GetExecutingAssembly())); var appDeployment = AppDeployment.ReadDeploymentManifest( manifestRootDir, AppDeployment.DeploymentManifestFileName, skipManifestCheckTestHook: true); string deploymentDir = ServerDeployment.ComputeDeploymentDir(manifestRootDir); Directory.CreateDirectory(deploymentDir); XAssert.IsTrue(ServerDeployment.IsServerDeploymentOutOfSync(manifestRootDir, appDeployment, out deploymentDir)); }
public void TestMissingManifestDirectory() { XAssert.IsTrue(ServerDeployment.IsServerDeploymentOutOfSync(TemporaryDirectory, null, out var deploymentDir)); }