mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Comment out more tests
This commit is contained in:
@@ -307,46 +307,5 @@ namespace Squirrel.Tests
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ExecutablesPinnedToTaskbarShouldPointToNewVersion()
|
||||
{
|
||||
string tempDir;
|
||||
|
||||
using (Utility.WithTempDirectory(out tempDir)) {
|
||||
string packagesDir = Path.Combine(tempDir, "theApp", "packages");
|
||||
Directory.CreateDirectory(packagesDir);
|
||||
|
||||
new[] {
|
||||
"SampleUpdatingApp.1.0.0.0.nupkg",
|
||||
"SampleUpdatingApp.1.1.0.0.nupkg",
|
||||
}.ForEach(x => File.Copy(IntegrationTestHelper.GetPath("fixtures", x), Path.Combine(packagesDir, x)));
|
||||
|
||||
var fixture = new UpdateManager("http://lol", "theApp", FrameworkVersion.Net40, tempDir, new FakeUrlDownloader());
|
||||
|
||||
var baseEntry = ReleaseEntry.GenerateFromFile(Path.Combine(packagesDir, "SampleUpdatingApp.1.0.0.0.nupkg"));
|
||||
var latestFullEntry = ReleaseEntry.GenerateFromFile(Path.Combine(packagesDir, "SampleUpdatingApp.1.1.0.0.nupkg"));
|
||||
|
||||
var updateInfo = UpdateInfo.Create(null, new[] { baseEntry }, packagesDir, FrameworkVersion.Net40);
|
||||
using (fixture) {
|
||||
await fixture.ApplyReleases(updateInfo);
|
||||
}
|
||||
|
||||
var oldExecutable = Path.Combine(tempDir, "theApp", "app-1.0.0.0", "SampleUpdatingApp.exe");
|
||||
File.Exists(oldExecutable).ShouldBeTrue();
|
||||
TaskbarHelper.PinToTaskbar(oldExecutable);
|
||||
|
||||
updateInfo = UpdateInfo.Create(baseEntry, new[] { latestFullEntry }, packagesDir, FrameworkVersion.Net40);
|
||||
using (fixture) {
|
||||
await fixture.ApplyReleases(updateInfo);
|
||||
}
|
||||
|
||||
var newExecutable = Path.Combine(tempDir, "theApp", "app-1.1.0.0", "SampleUpdatingApp.exe");
|
||||
File.Exists(newExecutable).ShouldBeTrue();
|
||||
TaskbarHelper.IsPinnedToTaskbar(newExecutable).ShouldBeTrue();
|
||||
|
||||
Utility.Retry(() => TaskbarHelper.UnpinFromTaskbar(newExecutable));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -124,6 +124,9 @@ namespace Squirrel.Tests
|
||||
[Fact]
|
||||
public async Task DownloadReleasesFromHttpServerIntegrationTest()
|
||||
{
|
||||
Assert.False(true, "Rewrite this to not use the SampleUpdatingApp");
|
||||
|
||||
/*
|
||||
string tempDir = null;
|
||||
|
||||
var updateDir = new DirectoryInfo(IntegrationTestHelper.GetPath("..", "SampleUpdatingApp", "SampleReleasesFolder"));
|
||||
@@ -169,11 +172,15 @@ namespace Squirrel.Tests
|
||||
actualEntry.Version.ShouldEqual(x.Version);
|
||||
});
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task DownloadReleasesFromFileDirectoryIntegrationTest()
|
||||
{
|
||||
Assert.False(true, "Rewrite this to not use the SampleUpdatingApp");
|
||||
|
||||
/*
|
||||
string tempDir = null;
|
||||
|
||||
var updateDir = new DirectoryInfo(IntegrationTestHelper.GetPath("..", "SampleUpdatingApp", "SampleReleasesFolder"));
|
||||
@@ -211,6 +218,7 @@ namespace Squirrel.Tests
|
||||
actualEntry.Version.ShouldEqual(x.Version);
|
||||
});
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user