Cope with parameterised fixtures (#70)

This commit is contained in:
Patrick Stevens
2024-06-11 23:28:13 +01:00
committed by GitHub
parent b3bc0aa4c0
commit df64e46079
7 changed files with 110 additions and 46 deletions

View File

@@ -0,0 +1,18 @@
namespace Consumer
open NUnit.Framework
open FsUnitTyped
[<TestFixture true>]
[<TestFixture false>]
type TestParameterisedFixture (v : bool) =
[<Test>]
member _.Thing () = v |> shouldEqual v
[<TestFixture(3, true)>]
[<TestFixture(6, false)>]
type TestParameterisedFixtureMultiple (i : int, v : bool) =
[<Test>]
member _.Thing () =
v |> shouldEqual v
i |> shouldEqual i