Pergunta

I'm hopefully going to be deploying an application soon, and I find it strange that I would have to include nunit.framework.dll. After all, the user is not going to need to run unit tests! So the only thing I can think of is that there is some way of configuring my solution for Debug and Release, such that Debug references NUnit, while Release does not. I've never seen anything like this before in VS200anything. What is everyone else here doing to preclude the need to deploy the NUnit framework along with your apps?

Foi útil?

Solução

Typically you would create two projects: the "main" project to be released, and a separate project containing only unit tests. That way, you don't distribute your tests in any way.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top