I come from the Java EE world but now I\'m working on a .Net project. In Java when I wanted to test a protected method it was quite easy, just having the test class with the
You can expose the protected methods in a new class that inherits the class you want to test.
public class ExposedClassToTest : ClassToTest { public bool ExposedProtectedMethod(int parameter) { return base.ProtectedMethod(parameter); } }