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 inherit the class you are testing on your test class.
[TestClass] public class Test1 : SomeClass { [TestMethod] public void MyTest { Assert.AreEqual(1, ProtectedMethod()); } }