mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix up tests dependent on a fixture whose package folder resolves
This commit is contained in:
@@ -19,9 +19,7 @@ namespace Squirrel.Tests.Core
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void ReleasePackageIntegrationTest()
|
public void ReleasePackageIntegrationTest()
|
||||||
{
|
{
|
||||||
Assert.False(true, "Need to recreate the fixtures for this test");
|
var inputPackage = IntegrationTestHelper.GetPath("fixtures", "Squirrel.Tests.0.1.0-pre.nupkg");
|
||||||
|
|
||||||
var inputPackage = IntegrationTestHelper.GetPath("fixtures", "Squirrel.Core.1.0.0.0.nupkg");
|
|
||||||
var outputPackage = Path.GetTempFileName() + ".nupkg";
|
var outputPackage = Path.GetTempFileName() + ".nupkg";
|
||||||
var sourceDir = IntegrationTestHelper.GetPath("fixtures", "packages");
|
var sourceDir = IntegrationTestHelper.GetPath("fixtures", "packages");
|
||||||
|
|
||||||
@@ -48,7 +46,7 @@ namespace Squirrel.Tests.Core
|
|||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
files.Any(x => nonDesktopPaths.Any(y => x.Path.ToLowerInvariant().Contains(y.ToLowerInvariant()))).ShouldBeFalse();
|
files.Any(x => nonDesktopPaths.Any(y => x.Path.ToLowerInvariant().Contains(y.ToLowerInvariant()))).ShouldBeFalse();
|
||||||
files.Any(x => x.Path.ToLowerInvariant().Contains(@".xml")).ShouldBeFalse();
|
files.Any(x => x.Path.ToLowerInvariant().EndsWith(@".xml")).ShouldBeFalse();
|
||||||
} finally {
|
} finally {
|
||||||
File.Delete(outputPackage);
|
File.Delete(outputPackage);
|
||||||
}
|
}
|
||||||
@@ -72,11 +70,7 @@ namespace Squirrel.Tests.Core
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void FindDependentPackagesForDummyPackage()
|
public void FindDependentPackagesForDummyPackage()
|
||||||
{
|
{
|
||||||
// Find dependent packages for a package by looking in the
|
var inputPackage = IntegrationTestHelper.GetPath("fixtures", "Squirrel.Tests.0.1.0-pre.nupkg");
|
||||||
// 'packages' folder
|
|
||||||
Assert.False(true, "Need to fix the fixture");
|
|
||||||
|
|
||||||
var inputPackage = IntegrationTestHelper.GetPath("fixtures", "Squirrel.Core.1.0.0.0.nupkg");
|
|
||||||
var fixture = new ReleasePackage(inputPackage);
|
var fixture = new ReleasePackage(inputPackage);
|
||||||
var sourceDir = IntegrationTestHelper.GetPath("fixtures", "packages");
|
var sourceDir = IntegrationTestHelper.GetPath("fixtures", "packages");
|
||||||
(new DirectoryInfo(sourceDir)).Exists.ShouldBeTrue();
|
(new DirectoryInfo(sourceDir)).Exists.ShouldBeTrue();
|
||||||
@@ -103,9 +97,7 @@ namespace Squirrel.Tests.Core
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void CanResolveMultipleLevelsOfDependencies()
|
public void CanResolveMultipleLevelsOfDependencies()
|
||||||
{
|
{
|
||||||
Assert.False(true, "Need to remake the fixture for this test");
|
var inputPackage = IntegrationTestHelper.GetPath("fixtures", "Squirrel.Tests.0.1.0-pre.nupkg");
|
||||||
|
|
||||||
var inputPackage = IntegrationTestHelper.GetPath("fixtures", "SampleUpdatingApp.1.0.0.0.nupkg");
|
|
||||||
var outputPackage = Path.GetTempFileName() + ".nupkg";
|
var outputPackage = Path.GetTempFileName() + ".nupkg";
|
||||||
var sourceDir = IntegrationTestHelper.GetPath("fixtures", "packages");
|
var sourceDir = IntegrationTestHelper.GetPath("fixtures", "packages");
|
||||||
|
|
||||||
@@ -126,10 +118,9 @@ namespace Squirrel.Tests.Core
|
|||||||
pkg.GetFiles().ForEach(x => this.Log().Info(x.Path));
|
pkg.GetFiles().ForEach(x => this.Log().Info(x.Path));
|
||||||
|
|
||||||
var filesToLookFor = new[] {
|
var filesToLookFor = new[] {
|
||||||
"System.Reactive.Core.dll",
|
"xunit.assert.dll", // Tests => Xunit => Xunit.Assert
|
||||||
"ReactiveUI.dll",
|
"NuGet.Core.dll", // Tests => NuGet
|
||||||
"MarkdownSharp.dll",
|
"Squirrel.Tests.dll",
|
||||||
"SampleUpdatingApp.exe",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
filesToLookFor.ForEach(name => {
|
filesToLookFor.ForEach(name => {
|
||||||
@@ -241,14 +232,6 @@ namespace Squirrel.Tests.Core
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
|
||||||
public void DependentPackageFoundAndIncludedInReleasePackage()
|
|
||||||
{
|
|
||||||
// Create a Release Package based on a package which has a dependency
|
|
||||||
// in the packages directory
|
|
||||||
Assert.False(true, "Rewrite this test");
|
|
||||||
}
|
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void DependentLocalPackageNotFoundAndThrowsError()
|
public void DependentLocalPackageNotFoundAndThrowsError()
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
test/fixtures/Squirrel.Tests.0.1.0-pre.nupkg
vendored
Normal file
BIN
test/fixtures/Squirrel.Tests.0.1.0-pre.nupkg
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user