Created
October 21, 2019 04:20
-
-
Save IntegerMan/54bbe1ad7b5450d712df5d02144776f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let getRandomNumber (max: int): int = 42 | |
let buildTestState = {World=(makeTestWorld false); SimState=Simulating} | |
[<Fact>] | |
let ``Rabbit should move randomly`` () = | |
// Arrange | |
let state = buildTestState | |
let originalPos = state.World.Rabbit.Pos | |
// Act | |
let newWorld = simulateActors state getRandomNumber | |
// Assert | |
newWorld.World.Rabbit.Pos |> should not' (equal originalPos) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment