mirror of
https://github.com/Smaug123/unofficial-nunit-runner
synced 2025-10-05 09:28:40 +00:00
Set AppDomain (#15)
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="TestSetUp.fs" />
|
||||
<Compile Include="TestValues.fs" />
|
||||
<None Include="some-config.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<Compile Include="TestAppDomain.fs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
16
Consumer/TestAppDomain.fs
Normal file
16
Consumer/TestAppDomain.fs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Consumer
|
||||
|
||||
open System
|
||||
open FsUnitTyped
|
||||
open System.IO
|
||||
open NUnit.Framework
|
||||
|
||||
[<TestFixture>]
|
||||
module TestAppDomain =
|
||||
|
||||
[<Test>]
|
||||
let ``Can load config`` () =
|
||||
Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "some-config.json")
|
||||
|> File.ReadAllText
|
||||
|> fun s -> s.Trim ()
|
||||
|> shouldEqual """{"hi":"bye"}"""
|
1
Consumer/some-config.json
Normal file
1
Consumer/some-config.json
Normal file
@@ -0,0 +1 @@
|
||||
{"hi":"bye"}
|
Reference in New Issue
Block a user