Add a bundler consistency tests that verifies that the size of each embedded file
(recorded in the bundle manifest) matches its original size of the file on disk.
bundler.BundleManifest.Contains($"{coreclr}").Should().Be(options.HasFlag(BundleOptions.BundleNativeBinaries));
}
+ [Fact]
+ public void TestFileSizes()
+ {
+ var fixture = sharedTestState.TestFixture.Copy();
+ var bundler = BundleHelper.Bundle(fixture);
+ var publishPath = BundleHelper.GetPublishPath(fixture);
+
+ bundler.BundleManifest.Files.ForEach(file =>
+ Assert.True(file.Size == new FileInfo(Path.Combine(publishPath, file.RelativePath)).Length));
+ }
+
[Fact]
public void TestAssemblyAlignment()
{