Special NUnit exception types (#38)

This commit is contained in:
Patrick Stevens
2024-06-06 21:23:47 +01:00
committed by GitHub
parent 00e2b027c7
commit 9a0eb1d8fc
6 changed files with 52 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
<ItemGroup>
<Compile Include="NoAttribute.fs" />
<Compile Include="Inconclusive.fs" />
<Compile Include="TestSetUp.fs" />
<Compile Include="TestValues.fs" />
<None Include="some-config.json">

19
Consumer/Inconclusive.fs Normal file
View File

@@ -0,0 +1,19 @@
namespace Consumer
open NUnit.Framework
[<TestFixture>]
module Inconclusive =
[<Test>]
let ``Inconclusive test`` () =
Assert.Inconclusive "I was inconclusive"
[<Test>]
let ``Ignore test`` () = Assert.Ignore "I am ignored"
[<Test>]
let ``Pass test`` () = Assert.Pass "ohhhh yeaahhhh"
[<Test>]
let ``Warning`` () = Assert.Warn "warning"