The exception keyword specifies an exception as an expected value.
| check | test result |
| use | column | with | current |
| message | throw exception? |
| oh no | exception["oh no"] |
| oops | exception[ApplicationException] |
| null | exception[NullReferenceException] |
| help | exception[ApplicationException: "help"] |
| OK | exception[ApplicationException] |
|
| use | column | with | current | | message | throw exception? | | oh no | exception["oh no"] | | oops | exception[ApplicationException] | | null | exception[NullReferenceException] | | help | exception[ApplicationException: "help"] | | OK | exception[ApplicationException] expected no exception actual |
|
| check | test result |
| set | message | oh no |
| check | throw exception | exception["oh no"] |
|
| set | message | oh no | | check | throw exception | exception["oh no"] |
|