Browse Source

Rename console tests and update the git ignore file.

Ignore all files in SavingTestArea.
master
Craig Oates 6 years ago
parent
commit
b27acd31f2
  1. 3
      .gitignore
  2. 10
      TestCentre/ConsoleTests.fs

3
.gitignore vendored

@ -3,6 +3,9 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# Project Specific Items
SavingTestArea/
# User-specific files
*.suo
*.user

10
TestCentre/ConsoleTests.fs

@ -33,7 +33,7 @@
let fullOverlay () = overlays.[Random().Next(4, 5)]
[<Property>]
let ``buildDefaultSpec creates intended type`` () =
let ``Can create an intended default image spec`` () =
let width = randomInt ()
let height = randomInt ()
let oSpec =
@ -50,7 +50,7 @@
defaultSpec = spec
[<Property>]
let ``buildSpec creates intended type with border`` () =
let ``Can create an image spec with border`` () =
let width = randomInt ()
let height = randomInt ()
let mainColour = randomColour ()
@ -71,7 +71,7 @@
expectedSpec = spec
[<Property>]
let ``buildSpec creates intended type with full overlay`` () =
let ``Can create an image spec with full overlay`` () =
let width = randomInt ()
let height = randomInt ()
let mainColour = randomColour ()
@ -91,7 +91,7 @@
expectedSpec = spec
[<Property>]
let ``buildSpec creates intended type with no overlay`` () =
let ``Can create an image spec with no overlay`` () =
let width = randomInt ()
let height = randomInt ()
let colour = randomColour ()
@ -117,7 +117,7 @@
Assert.NotEmpty colourList
[<Fact>]
let ``getDesktopPath returns desktop path`` () =
let ``Can retrieve the path to users desktop`` () =
let expectedPath =
Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)
Assert.Equal (expectedPath, getDesktopPath)
Loading…
Cancel
Save