Death Socket consists of three projects. They are a .Net Standard 2.0 library, a console program and a Test Centre. The purpose of this repository is to provide a way for people to add grids to images. https://www.craigoates.net/Software/project/13
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
691 B

namespace ConsoleTests
module PropertyTests =
open System
open FsCheck.Xunit
open DeathSocket.Validation
[<Property>]
let ``Setting pen width greater than 0`` () =
(setPenWidth (Random().Next()) (Random().Next())) > 0.0f
module UnitTests =
open Xunit
open DeathSocket.Validation
open System.IO
let saveLocation = __SOURCE_DIRECTORY__ + "/SavingTestArea/"
[<Fact>]
let ``Saving Test Area can be located`` () =
Assert.True (Directory.Exists saveLocation)
[<Fact>]
let ``Colour list is not empty`` () =
Assert.False (colourList.IsEmpty)