Created
October 21, 2019 04:05
-
-
Save IntegerMan/9aa3f09d59bbb8d06845fedb518af7bb 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
[<Theory>] | |
[<InlineData(4, 2, 4, 1, true)>] | |
[<InlineData(4, 2, 4, 0, false)>] | |
let ``Point Adjaency Tests`` (x1, y1, x2, y2, expectedAdjacent) = | |
// Arrange | |
let pos1 = newPos x1 y1 | |
let pos2 = newPos x2 y2 | |
// Act & Assert | |
isAdjacentTo pos1 pos2 |> should equal expectedAdjacent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment