|
|
|
@ -112,9 +112,6 @@
|
|
|
|
|
|
|
|
|
|
module ``Contents Tests`` = |
|
|
|
|
|
|
|
|
|
// [] RequestCleanTextFromFile ends with end-token tests |
|
|
|
|
// -- console, desktop, test, word |
|
|
|
|
|
|
|
|
|
[<Fact>] |
|
|
|
|
let ``CleanResult returns a string which ends with the correct end-token`` () = |
|
|
|
|
let result = |
|
|
|
@ -157,7 +154,7 @@
|
|
|
|
|
Assert.Equal(desiredSentencesCount, result) |
|
|
|
|
|
|
|
|
|
[<Fact>] |
|
|
|
|
let ``RequestCleanFileTextFromFile returns a string which end with the correct end-token when using console-waterworks-announcement`` () = |
|
|
|
|
let ``RequestCleanTextFromFile returns a string which end with the correct end-token when using console-waterworks-announcement`` () = |
|
|
|
|
let result = |
|
|
|
|
Pancake.RequestCleanTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) ConsoleWaterworks |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
@ -165,7 +162,7 @@
|
|
|
|
|
Assert.True result |
|
|
|
|
|
|
|
|
|
[<Fact>] |
|
|
|
|
let ``RequestCleanFileTextFromFile returns a string which end with the correct end-token when using desktop-clock-info`` () = |
|
|
|
|
let ``RequestCleanTextFromFile returns a string which end with the correct end-token when using desktop-clock-info`` () = |
|
|
|
|
let result = |
|
|
|
|
Pancake.RequestCleanTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) DesktopClock |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
@ -173,7 +170,7 @@
|
|
|
|
|
Assert.True result |
|
|
|
|
|
|
|
|
|
[<Fact>] |
|
|
|
|
let ``RequestCleanFileTextFromFile returns a string which end with the correct end-token when using test-post`` () = |
|
|
|
|
let ``RequestCleanTextFromFile returns a string which end with the correct end-token when using test-post`` () = |
|
|
|
|
let result = |
|
|
|
|
Pancake.RequestCleanTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) TestPost |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
@ -181,7 +178,7 @@
|
|
|
|
|
Assert.True result |
|
|
|
|
|
|
|
|
|
[<Fact>] |
|
|
|
|
let ``RequestCleanFileTextFromFile returns a string which end with the correct end-token when using word-generator`` () = |
|
|
|
|
let ``RequestCleanTextFromFile returns a string which end with the correct end-token when using word-generator`` () = |
|
|
|
|
let result = |
|
|
|
|
Pancake.RequestCleanTextFromFileAsync (ValidGibberishLevelInput()) (ValidSentencesInput()) WordGenerator |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|