Re-write the remaining tests
This commit is contained in:
parent
ec90147c07
commit
62c8e446c9
6 changed files with 116 additions and 199 deletions
|
|
@ -147,5 +147,12 @@ type FakeHome with
|
|||
member this.LightsThatAreOn =
|
||||
this.LightStates |> Seq.filter (snd >> _.IsOn) |> Seq.toList
|
||||
|
||||
member this.LightShouldHaveState light condition =
|
||||
this.LightStates |> Seq.find (fst >> (=) light) |> snd |> condition
|
||||
member this.NonRemotelyControlledLightStates =
|
||||
this.LightStates
|
||||
|> Seq.filter (fst >> _.ControlledWithRemote >> (=) NonRemote)
|
||||
|> Seq.toList
|
||||
|
||||
member this.RemotelyControlledLightStates =
|
||||
this.LightStates
|
||||
|> Seq.filter (fst >> _.ControlledWithRemote >> (<>) NonRemote)
|
||||
|> Seq.toList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue