Check VelopackApp on all platforms / better error messages

This commit is contained in:
Caelan Sayler
2024-01-10 22:42:47 +00:00
parent 14965a5259
commit 8d56e78d99
6 changed files with 46 additions and 43 deletions

View File

@@ -184,7 +184,7 @@ public class WindowsPackTests
var runner = new WindowsPackCommandRunner(logger);
runner.Run(options).GetAwaiterResult();
Assert.Throws<ArgumentException>(() => runner.Run(options).GetAwaiterResult());
Assert.Throws<UserErrorException>(() => runner.Run(options).GetAwaiterResult());
}
[SkippableFact]
@@ -222,7 +222,7 @@ public class WindowsPackTests
runner.Run(options).GetAwaiterResult();
options.TargetRuntime = RID.Parse("win10.0.19043-x86");
Assert.Throws<ArgumentException>(() => runner.Run(options).GetAwaiterResult());
Assert.Throws<UserErrorException>(() => runner.Run(options).GetAwaiterResult());
}
[SkippableFact]
@@ -253,7 +253,7 @@ public class WindowsPackTests
};
var runner = new WindowsPackCommandRunner(logger);
Assert.Throws<Exception>(() => runner.Run(options).GetAwaiterResult());
Assert.Throws<UserErrorException>(() => runner.Run(options).GetAwaiterResult());
}
[SkippableFact]