Here's what I came up with
[<Fact>] let ``Ability score bonus: +2 Con`` () = let character = TestUtils.CreateCharacter(Dwarf, con = 10u) |> Result.ok Assert.Equal(Character.con character, Constitution 12u)
Here's the record
type Character = private { Race: Race Height: Height Weight: Weight Con: Constitution }
So, basically, my solution is
let con character = character.Con
a getter just for testing purposes
Is there a better way? Without creating a getter for the sake of a test?