Created
October 22, 2019 03:37
-
-
Save IntegerMan/cab33f6534660112b3b38a0ee122009b 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
[<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