Rename from the rather bland "TestRunner" (#61)

This commit is contained in:
Patrick Stevens
2024-06-10 23:25:33 +01:00
committed by GitHub
parent 181063afcd
commit ebcf0ed589
34 changed files with 602 additions and 594 deletions

View File

@@ -0,0 +1,20 @@
namespace WoofWare.NUnitTestRunner.Test
open System
open System.IO
[<RequireQualifiedAccess>]
module internal EmbeddedResource =
type Dummy = class end
let read (name : string) : string =
let assy = typeof<Dummy>.Assembly
let manifestName =
assy.GetManifestResourceNames ()
|> Seq.filter (fun s -> s.EndsWith (name, StringComparison.Ordinal))
|> Seq.exactlyOne
use s = assy.GetManifestResourceStream manifestName
use reader = new StreamReader (s)
reader.ReadToEnd ()