Browse Source

rename unit tests which references ImageSpec to BrushSpec.

master
Craig Oates 6 years ago
parent
commit
01e1c3b3d6
  1. 2
      DeathSocketCLI/Validation.fs
  2. 4
      TestCentre/ConsoleTests.fs

2
DeathSocketCLI/Validation.fs

@ -32,6 +32,8 @@
(String.Concat("The colour specifed is invalid.\n",
"Please use the 'list-colours' command to see what you can use."))
(* This function creates a consistent line width amoung different image
sizes. Use this when the user has no means to specify a pen width. *)
let setPenWidth imgWidth imgHeight =
let width = float32 imgWidth
let height = float32 imgHeight

4
TestCentre/ConsoleTests.fs

@ -59,7 +59,7 @@
(setPenWidth (Random().Next()) (Random().Next())) > 0.0f
[<Property>]
let ``Can build the intended default image specification`` () =
let ``Can build the intended default BrushSpec`` () =
let defaultSpec =
{ originalPath = loadPath
savePath = savePath
@ -71,7 +71,7 @@
defaultSpec = spec
[<Property>]
let ``Can build an image specification as intended`` () =
let ``Can build a BrushSpec as intended`` () =
let colourString = randomColourString ()
let brush = parseColour colourString
let pWidth = float32 (Random().Next())

Loading…
Cancel
Save