Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
let ``Squirrel Getting Acorn Should Change how it Displays`` () =
// Arrange
let customSquirrel = {Pos=newPos 6 7; ActorKind = Squirrel false; IsActive = true}
let testState = buildTestState
let state: GameState = {testState with World = {testState.World with Squirrel = customSquirrel}}
// Act
let newState = handlePlayerCommand state MoveLeft
// Assert
newState.World.Squirrel.ActorKind |> should equal (Squirrel true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment