Long time viewer, first time the questioner here Using Unit Test in a Different Project, How Do I Separate It on the Release Build?
Of course, when I remove the reference to the unit test project, all references to the unit test interface will not be able to find the interface and can cause compiler errors?
Thanks for any help.
Edit: By separating, I mean removing them on the release build.
You should have made two of your projects, so that the base code (in which you are testing) does not have a unit test Depending on it, this is a unit test on which your code has dependencies.
As you have written, I have written my code to you in NIT. (Ie Assemblies?) Your project dependencies should look like this.
// Business Code
My_Project.dll
-> Reference
---> System.dll etc.
// Test Code
My_Project_Test.dll
-> Reference
---> My_Project.dll
If you create your projects in such a way, then I think that you do not have to do anything in your release build configuration.
Comments
Post a Comment