Tag Archives: assemblies

Test private methods in C# .Net

I was writing Unit Tests for a module that has many private methods. With these tricks, my UnitTest assembly is allowed to access all methods and properties as if they were declared Internal, rather than private, without changing the production code modifiers to internal. When creating the Unit Tests, Visual Studio 2008 suggested I added […]

Posted in C# | Also tagged , | Leave a comment