Expand test harness (#6)

This commit is contained in:
Patrick Stevens
2025-05-16 21:18:32 +01:00
committed by GitHub
parent 3415b7a73d
commit d85bfeb168
12 changed files with 95 additions and 18 deletions

View File

@@ -470,7 +470,12 @@ module IlMachineState =
with :? FileNotFoundException ->
None
)
|> Seq.exactlyOne
|> Seq.toList
match assy with
| [] -> failwith $"Could not find a readable DLL in any runtime dir with name %s{assemblyName.Name}.dll"
| _ :: _ :: _ -> failwith $"Found multiple DLLs in runtime dirs with name %s{assemblyName.Name}.dll"
| [ assy ] ->
state.WithLoadedAssembly assemblyName assy, assy, assemblyName