Put Arbitraries on the entire test class
This commit is contained in:
parent
c7c5de9e21
commit
6baf725765
1 changed files with 12 additions and 10 deletions
|
|
@ -1,9 +1,11 @@
|
||||||
module NightLight.Core.Tests.NightLightTests
|
namespace NightLight.Core.Tests
|
||||||
|
|
||||||
open FsCheck.Xunit
|
open FsCheck.Xunit
|
||||||
|
|
||||||
[<Property(Arbitrary = [| typeof<Arbitraries> |])>]
|
[<Properties(Arbitrary = [| typeof<Arbitraries> |])>]
|
||||||
let ``Brightness should always be under 255`` (fakeHome: FakeHome) (interactions: Interaction list) =
|
type NightLightTests() =
|
||||||
|
[<Property>]
|
||||||
|
let ``Brightness should always be under 255`` (fakeHome: FakeHome) (interactions: Interaction list) =
|
||||||
interactions |> Seq.iter (fun interaction -> fakeHome.Interact interaction)
|
interactions |> Seq.iter (fun interaction -> fakeHome.Interact interaction)
|
||||||
|
|
||||||
fakeHome.LightStates
|
fakeHome.LightStates
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue