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", (String.Concat("The colour specifed is invalid.\n",
"Please use the 'list-colours' command to see what you can use.")) "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 setPenWidth imgWidth imgHeight =
let width = float32 imgWidth let width = float32 imgWidth
let height = float32 imgHeight let height = float32 imgHeight

4
TestCentre/ConsoleTests.fs

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

Loading…
Cancel
Save