Swap test order
This commit is contained in:
parent
f787c2aa4e
commit
0e112f313a
1 changed files with 5 additions and 5 deletions
|
|
@ -21,12 +21,12 @@ type NightLightTests() =
|
||||||
|
|
||||||
fakeHome
|
fakeHome
|
||||||
|
|
||||||
[<Property(Arbitrary = [| typeof<ArbitraryInteractionsListThatEndsDuringTheNight> |])>]
|
|
||||||
let ``Lights should be red during the night`` (interactions: Interaction list) =
|
|
||||||
let fakeHome = createFakeHomeWithNightLightAndInteract interactions
|
|
||||||
fakeHome.ForAllLightsThatAreOn(fun (_, _, color) -> color = Red)
|
|
||||||
|
|
||||||
[<Property(Arbitrary = [| typeof<ArbitraryInteractionsListThatEndsDuringTheDay> |])>]
|
[<Property(Arbitrary = [| typeof<ArbitraryInteractionsListThatEndsDuringTheDay> |])>]
|
||||||
let ``Lights should be white or yellow during the day`` (interactions: Interaction list) =
|
let ``Lights should be white or yellow during the day`` (interactions: Interaction list) =
|
||||||
let fakeHome = createFakeHomeWithNightLightAndInteract interactions
|
let fakeHome = createFakeHomeWithNightLightAndInteract interactions
|
||||||
fakeHome.ForAllLightsThatAreOn(fun (_, _, color) -> color = White || color = Yellow)
|
fakeHome.ForAllLightsThatAreOn(fun (_, _, color) -> color = White || color = Yellow)
|
||||||
|
|
||||||
|
[<Property(Arbitrary = [| typeof<ArbitraryInteractionsListThatEndsDuringTheNight> |])>]
|
||||||
|
let ``Lights should be red during the night`` (interactions: Interaction list) =
|
||||||
|
let fakeHome = createFakeHomeWithNightLightAndInteract interactions
|
||||||
|
fakeHome.ForAllLightsThatAreOn(fun (_, _, color) -> color = Red)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue