diff --git a/test/ApplyReleasesTests.cs b/test/ApplyReleasesTests.cs index 21a7edff..4b71024b 100644 --- a/test/ApplyReleasesTests.cs +++ b/test/ApplyReleasesTests.cs @@ -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 => { diff --git a/test/DeltaPackageTests.cs b/test/DeltaPackageTests.cs index 1f23174e..1a40061c 100644 --- a/test/DeltaPackageTests.cs +++ b/test/DeltaPackageTests.cs @@ -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);