mirror of
https://github.com/logos-co/velopack.git
synced 2026-09-01 14:11:10 +00:00
Fix the rest of the tests
This commit is contained in:
@@ -402,7 +402,6 @@ namespace Squirrel.Tests
|
||||
var filesToFind = new[] {
|
||||
new {Name = "NLog.dll", Version = new Version("2.0.0.0")},
|
||||
new {Name = "NSync.Core.dll", Version = new Version("1.1.0.0")},
|
||||
new {Name = Path.Combine("sub", "Ionic.Zip.dll"), Version = new Version("1.9.1.8")},
|
||||
};
|
||||
|
||||
filesToFind.ForEach(x => {
|
||||
|
||||
@@ -31,16 +31,16 @@ namespace Squirrel.Tests.Core
|
||||
result.Version.ShouldEqual(expected.Version);
|
||||
|
||||
this.Log().Info("Expected file list:");
|
||||
expected.GetFiles().Select(x => x.Path).OrderBy(x => x).ForEach(x => this.Log().Info(x));
|
||||
var expectedList = expected.GetFiles().Select(x => x.Path).OrderBy(x => x).ToList();
|
||||
expectedList.ForEach(x => this.Log().Info(x));
|
||||
|
||||
this.Log().Info("Actual file list:");
|
||||
result.GetFiles().Select(x => x.Path).OrderBy(x => x).ForEach(x => this.Log().Info(x));
|
||||
var actualList = result.GetFiles().Select(x => x.Path).OrderBy(x => x).ToList();
|
||||
actualList.ForEach(x => this.Log().Info(x));
|
||||
|
||||
Enumerable.Zip(
|
||||
expected.GetFiles().Select(x => x.Path).OrderBy(x => x),
|
||||
result.GetFiles().Select(x => x.Path).OrderBy(x => x),
|
||||
(e, a) => e == a
|
||||
).All(x => x).ShouldBeTrue();
|
||||
Enumerable.Zip(expectedList, actualList, (e, a) => e == a)
|
||||
.All(x => x != false)
|
||||
.ShouldBeTrue();
|
||||
} finally {
|
||||
if (File.Exists(outFile)) {
|
||||
File.Delete(outFile);
|
||||
|
||||
Reference in New Issue
Block a user