Comment out more tests

This commit is contained in:
Paul Betts
2014-08-05 15:54:45 +02:00
parent 6be81d2914
commit 2922373367
2 changed files with 8 additions and 41 deletions

View File

@@ -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));
}
}
}
}

View File

@@ -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);
});
}
*/
}
}
}