Skip to content

Instantly share code, notes, and snippets.

@IntegerMan

IntegerMan/rabbit.fs

Created Oct 21, 2019
Embed
What would you like to do?
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
You can’t perform that action at this time.