|
|
|
@ -182,3 +182,10 @@ let FilePathIsValid filePath
|
|
|
|
|
Pancake.RequestTextAsync (ValidGibberishLevelInput()) (InvalidSentencesInput()) |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
lazy Assert.Throws<ArgumentException>(fun () -> test |> ignore) |
|
|
|
|
|
|
|
|
|
[<Fact>] |
|
|
|
|
let ``RequestTextFromFile throws an ArgumentException when the gibberishLevel is invalid`` () = |
|
|
|
|
let test () = |
|
|
|
|
Pancake.RequestTextFromFileAsync (InvalidGibberishInput()) (ValidSentencesInput()) (ValidFileInput()) |
|
|
|
|
|> Async.RunSynchronously |
|
|
|
|
lazy Assert.Throws<ArgumentException>(fun () -> test |> ignore) |
|
|
|
|