-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Description
Exception assertions currently support Message and InnerException validation, but lack:
- StackTrace content validation
- HResult validation
- Data dictionary content validation
- Full fluent chaining for exception property assertions
Why
Testing exception behavior often requires validating that the stack trace points to the right location or data is properly attached.
Suggested Approach
.Throws<MyException>()
.And.HasMessage(msg => msg.Contains("..."))
.And.HasStackTrace(st => st.Contains("MethodName"))
.And.WithData(dict => dict.ContainsKey("ErrorCode"))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers