c# unit test TestClass non-public

by vekkev   Last Updated October 27, 2017 10:05 AM

When you want to do a unit test in C#, the class you type after the [TestClass] attribute should always be public, why is that? I do understand why the classes and methods you want to test have to be public, otherwise you cannot access them in your test project. But you don't need to acces your test project in your other project(s), am I right?

I'm new to C#.



Related Questions



What is IBM's CUPRIMDS?

Updated February 18, 2017 10:05 AM

What does stubbing mean in programming?

Updated March 03, 2017 13:05 PM

Integration tests, but how much?

Updated February 28, 2017 08:05 AM

i want a postman's counterpart for mobile developers

Updated December 05, 2017 07:05 AM