Make tests target specific lights when testing
This commit is contained in:
parent
0ddcd17fd4
commit
d57ca23822
5 changed files with 72 additions and 74 deletions
11
NightLight.Core.Tests/LightArbitraries.fs
Normal file
11
NightLight.Core.Tests/LightArbitraries.fs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace NightLight.Core.Tests
|
||||
|
||||
open NightLight.Core.Models
|
||||
open FsCheck.FSharp
|
||||
|
||||
type ArbitraryLight =
|
||||
static member Light() = lights |> Gen.elements |> Arb.fromGen
|
||||
|
||||
type ArbitraryRemotelyControlledLight =
|
||||
static member Light() =
|
||||
lights |> Seq.filter _.ControlledWithRemote |> Gen.elements |> Arb.fromGen
|
||||
Loading…
Add table
Add a link
Reference in a new issue