Give tests better names
This commit is contained in:
parent
14cfaaeed5
commit
d2864fcc22
1 changed files with 2 additions and 2 deletions
|
|
@ -22,11 +22,11 @@ type NightLightTests() =
|
|||
fakeHome
|
||||
|
||||
[<Property(Arbitrary = [| typeof<ArbitraryInteractionListThatEndsDuringTheDay> |])>]
|
||||
let ``Lights should be white or yellow during the day`` (interactions: Interaction list) =
|
||||
let ``All lights that are on should be white or yellow during the day`` (interactions: Interaction list) =
|
||||
let fakeHome = createFakeHomeWithNightLightAndInteract interactions
|
||||
fakeHome.ForAllLightsThatAreOn(fun (_, _, color) -> color = White || color = Yellow)
|
||||
|
||||
[<Property(Arbitrary = [| typeof<ArbitraryInteractionListThatEndsDuringTheNight> |])>]
|
||||
let ``Lights should be red during the night`` (interactions: Interaction list) =
|
||||
let ``All lights that are on 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