Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 1ce65d3

Browse files
committed
Add Asserts wrapper to assist Unix test debugging
CoreCLR on Unix doesn't currently support PDBs. This means that any failed xunit Asserts during testing include a stack trace but without any file or line information, which means that it can be time consuming to diagnose the location of a failure, in particular when there are multiple asserts of the same kind in the same test method, which is fairly common. This commit adds an internal Assert class that can be included in a test project while debugging. It provides wrappers over xunit's Assert class, and those wrappers use [Caller*] attributes to grab the call site's file/line info and include the information in any assertion failures.
1 parent 74b5c22 commit 1ce65d3

File tree

1 file changed

+609
-0
lines changed

1 file changed

+609
-0
lines changed

0 commit comments

Comments
 (0)