DEV Community

Discussion on: Caller Member Info, C#, and You

Collapse
 
johnn6tsm profile image
JohnN6TSM

I used callerfilepathattribute to create a slick unit Test database. I store data for a unit test method in a file next to the source file. I have a test method that writes its argument to the database if shift and alt are down, otherwise it checks the string against the database. Makes it easy to veeify complicated strings have not changed.

Collapse
 
integerman profile image
Matt Eland

This sounds similar to how Snapper works for identifying snapshot files for a unit test.