mercredi 22 mai 2019

How to get the test project bin\debug folder while test is running

I am trying to get the test project bing\debug folder while tests are running, cause the program writes file in the local assembly folder. Test is to make sure the file exists and have the correct contents. I can only get the TestResults Out folder.

I have tried some code, all returns "out" folder:

'''Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) ''' TestContext.DeploymentDirectory

Aucun commentaire:

Enregistrer un commentaire