mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-05 09:28:40 +00:00
Set working directory for tests (#36)
This commit is contained in:
@@ -9,8 +9,15 @@ open NUnit.Framework
|
||||
module TestAppDomain =
|
||||
|
||||
[<Test>]
|
||||
let ``Can load config`` () =
|
||||
let ``Can load config from app domain`` () =
|
||||
Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "some-config.json")
|
||||
|> File.ReadAllText
|
||||
|> fun s -> s.Trim ()
|
||||
|> shouldEqual """{"hi":"bye"}"""
|
||||
|
||||
[<Test>]
|
||||
let ``Can load config from working dir`` () =
|
||||
"some-config.json"
|
||||
|> File.ReadAllText
|
||||
|> fun s -> s.Trim ()
|
||||
|> shouldEqual """{"hi":"bye"}"""
|
||||
|
Reference in New Issue
Block a user