mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-11 03:48:38 +00:00
Rename from the rather bland "TestRunner" (#61)
This commit is contained in:
@@ -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 ()
|
Reference in New Issue
Block a user