Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 22, 2019 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/cab33f6534660112b3b38a0ee122009b to your computer and use it in GitHub Desktop.
Save IntegerMan/cab33f6534660112b3b38a0ee122009b to your computer and use it in GitHub Desktop.
[<Fact>]
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