diff --git a/NightLight.Core.Tests/NightLightTests.fs b/NightLight.Core.Tests/NightLightTests.fs index 6ffcb01..5a99241 100644 --- a/NightLight.Core.Tests/NightLightTests.fs +++ b/NightLight.Core.Tests/NightLightTests.fs @@ -93,7 +93,7 @@ type NightLightTests() = let lastBedroomControllingRemoteInteraction = tryGetLastBedroomControllingRemoteInteraction interactions - let newDayStartedSinceBedroomRemote = + let newDayStartedSinceLastBedroomControllingRemoteInteraction = hasNewDayStartedSince interactions lastBedroomControllingRemoteInteraction let livingRoomLightsToggledOn = @@ -113,7 +113,7 @@ type NightLightTests() = match light with | LeftBedroomLamp | RightBedroomLamp -> - if newDayStartedSinceBedroomRemote then + if newDayStartedSinceLastBedroomControllingRemoteInteraction then true else match lastBedroomControllingRemoteInteraction with @@ -131,6 +131,8 @@ type NightLightTests() = $"last bedroom controlling remote interaction is {lastBedroomControllingRemoteInteraction |> Option.map snd}" |> Prop.collect $"{lightsWithPower.Length} light(s) with power" |> Prop.classify livingRoomLightsToggledOn "living room lights toggled on" - |> Prop.classify newDayStartedSinceBedroomRemote "new day since bedroom remote" + |> Prop.classify + newDayStartedSinceLastBedroomControllingRemoteInteraction + "new day started since last bedroom controlling remote interaction" |> Prop.label fakeHome.Label |> Prop.trivial (lightsWithPower.Length = 0)