re: Caller Member Info, C#, and You VIEW POST


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.


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

code of conduct - report abuse