C# / Visual Studio: production and test code placement
Posted
by Patrick Linskey
on Stack Overflow
See other posts from Stack Overflow
or by Patrick Linskey
Published on 2010-05-26T05:57:13Z
Indexed on
2010/05/26
6:01 UTC
Read the original article
Hit count: 323
Hi,
In JavaLand, I'm used to creating projects that contain both production and test code. I like this practice because it simplifies testing of internal code without artificially exposing the internals in a project's published API.
So far, in my experiences with C# / Visual Studio / ReSharper / NUnit, I've created separate projects (i.e., separate DLLs) for production and test code. Is this the idiom, or am I off base? If this idiomatically correct, what's the right way to deal with exposing classes and methods for test purposes?
Thanks,
-Patrick
© Stack Overflow or respective owner