Clean assets between test runs

This commit is contained in:
Caelan Sayler
2025-05-18 23:33:30 +01:00
committed by Caelan
parent 552980bab5
commit 5f58fa59e3

View File

@@ -376,6 +376,8 @@ public class UpdateManagerTests
info.TargetFullRelease.SHA256 = null; info.TargetFullRelease.SHA256 = null;
um.DownloadUpdates(info); um.DownloadUpdates(info);
Directory.EnumerateFiles(packagesDir, "*.nupkg", SearchOption.TopDirectoryOnly).ForEach(File.Delete);
// change hash, it should now fail // change hash, it should now fail
string actualHash = info.TargetFullRelease.SHA1; string actualHash = info.TargetFullRelease.SHA1;
string modifiedHash = info.TargetFullRelease.SHA1.Substring(1) + "A"; string modifiedHash = info.TargetFullRelease.SHA1.Substring(1) + "A";