Put Arbitraries on the entire test class

This commit is contained in:
Sven van Heugten 2026-01-04 10:31:13 +01:00
parent c7c5de9e21
commit 6baf725765

View file

@ -1,8 +1,10 @@
module NightLight.Core.Tests.NightLightTests
namespace NightLight.Core.Tests
open FsCheck.Xunit
[<Property(Arbitrary = [| typeof<Arbitraries> |])>]
[<Properties(Arbitrary = [| typeof<Arbitraries> |])>]
type NightLightTests() =
[<Property>]
let ``Brightness should always be under 255`` (fakeHome: FakeHome) (interactions: Interaction list) =
interactions |> Seq.iter (fun interaction -> fakeHome.Interact interaction)