Stop throwing on unrecognised exceptions (#62)

This commit is contained in:
Patrick Stevens
2024-06-10 23:28:49 +01:00
committed by GitHub
parent ebcf0ed589
commit 3e6fff27d6

View File

@@ -168,8 +168,6 @@ module TestFixture =
| "NUnit.Framework.IgnoreException" -> Ok (Some (TestMemberSuccess.Ignored (Option.ofObj exc.Message)))
| "NUnit.Framework.InconclusiveException" ->
Ok (Some (TestMemberSuccess.Inconclusive (Option.ofObj exc.Message)))
| s when s.StartsWith ("NUnit.Framework.", StringComparison.Ordinal) ->
failwith $"Unrecognised special exception: %s{s}"
| _ -> Error orig
| Error orig -> Error orig