Verify that non-remotely controlled lights are on if they have power
This commit is contained in:
parent
d57ca23822
commit
d7fac9c3d0
3 changed files with 21 additions and 6 deletions
|
|
@ -6,6 +6,13 @@ open FsCheck.FSharp
|
|||
type ArbitraryLight =
|
||||
static member Light() = lights |> Gen.elements |> Arb.fromGen
|
||||
|
||||
type ArbitraryNonRemotelyControlledLight =
|
||||
static member Light() =
|
||||
lights
|
||||
|> Seq.filter (not << _.ControlledWithRemote)
|
||||
|> 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