Skip to content

armgit / Filee

Public Imported from GitHub
0

Free, open-source file converter. Convert 263 formats offline by drag & drop — images, PDF, Word, Excel, PowerPoint, HWP/HWPX, video, audio, e-books and archives. No upload, no Office needed.

Runtime message test uses a path of the platform it runs on

KnifeLemon4315842868a7
diff --git a/tests/Filee.Engines.Tests/AppLocalRuntimeTests.cs b/tests/Filee.Engines.Tests/AppLocalRuntimeTests.cs
index b7f37537..3fe83316 100644
--- a/tests/Filee.Engines.Tests/AppLocalRuntimeTests.cs
+++ b/tests/Filee.Engines.Tests/AppLocalRuntimeTests.cs
@@ -14,7 +14,8 @@ public sealed class AppLocalRuntimeTests : IDisposable
[InlineData(-1073741511)] // 0xC0000139 STATUS_ENTRYPOINT_NOT_FOUND
public void A_program_Windows_could_not_load_is_refused_with_the_runtime_message(int exitCode)
{
- var refused = Assert.Throws<ConversionRefusedException>(() => AppLocalRuntime.ThrowIfMissing(@"C:\Filee\engines\rhwp\rhwp.exe", exitCode));
+ var rhwp = Path.Combine(_root, "engines", "rhwp", "rhwp.exe");
+ var refused = Assert.Throws<ConversionRefusedException>(() => AppLocalRuntime.ThrowIfMissing(rhwp, exitCode));
Assert.Equal("error.runtime_missing", refused.ErrorKey);
Assert.Equal($"rhwp.exe, 0x{unchecked((uint)exitCode):X8}", refused.Detail);