Unit testing private code [duplicate]
问题 This question already has answers here : Unit testing private methods in C# (10 answers) Closed 2 years ago . I am currently involved in developing with C# - Here is some background: We implement MVP with our client application and we have a cyclomatic rule which states that no method should have a cyclomatic complexity greater than 5. This leads to a lot of small private methods which are generally responsible for one thing. My question is about unit testing a class: Testing the private