|
|
|
@ -111,54 +111,6 @@
|
|
|
|
|
let results = Assert.True(test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestTextFromFile returns a string which contains a full stop when using console-waterworks-announcement`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) ConsoleWaterworks |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
let results = Assert.Contains(".", test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestTextFromFile returns a string which contains a full stop when using desktop-clock-info`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) DesktopClock |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
let results = Assert.Contains(".", test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestTextFromFile returns a string which contains a full stop when using test-post`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) TestPost |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
let results = Assert.Contains(".", test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestTextFromFile returns a string which contains a full stop when using word-generator`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) WordGenerator |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
let results = Assert.Contains(".", test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestRandomText returns a string which ends with a full stop`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestRandomTextAsync () |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
let results = Assert.EndsWith(".", test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestTest returns a string which ends with a full stop`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestTextAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
let results = Assert.EndsWith(".", test()) |
|
|
|
|
Check.Quick results |
|
|
|
|
|
|
|
|
|
[<Property>] |
|
|
|
|
let ``RequestTextFromFile returns a string which ends with a full stop when using console-waterwork-announcement`` () = |
|
|
|
|
let test () = |
|
|
|
|