Hello rms2219,
Based on your description, you want to write a unit test for the application, the unit test could verify the data which you will export to outer file. Unfortunatelly, I think this defeats the purpose of unit test. As unit tests check for logic errors in the methods of classes with comparing the returned value of methods to the expected value to find whether there exists errors.
However, maybe you could create a new method to do this kind of testing. You may refer to the example mentioned in this
article to see if it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Send us any feedback you have about the help from MSFT at
fbmsdn@microsoft.com.