mirror of
https://github.com/Smaug123/WoofWare.Expect
synced 2025-10-05 04:28:40 +00:00
15 lines
311 B
Forth
15 lines
311 B
Forth
namespace WoofWare.Expect.Test
|
|
|
|
open NUnit.Framework
|
|
open WoofWare.Expect
|
|
|
|
[<TestFixture>]
|
|
module TestExceptionThrowing =
|
|
|
|
[<Test>]
|
|
let ``Can throw an exception`` () =
|
|
expect {
|
|
snapshotThrows @"System.Exception: oh no"
|
|
return! (fun () -> failwith<int> "oh no")
|
|
}
|