Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mattriley

    Do access modifiers limit unit testing?

    Hi Craig. Yes, that's the whole point. How do we compromise between access modifiers and unit testability? I'm also finding that developers who practice true TDD are more likely to be lenient with access modifiers. I'd be interested in hearing from such developers.
  2. mattriley

    Do access modifiers limit unit testing?

    Thanks jmeckley for your reply. I agree regarding non-public constructors, particularly where a factory is the intended means of producing an object. I also agree with revealing interfaces in a common top-level namespace. I've heard that this is particularly common in the Java community, and...
  3. mattriley

    Do access modifiers limit unit testing?

    I often find what I believe are good cases for using the "internal" access modifier on certain class members in C# for code readability and to prevent unintended usage. In .NET we usually write our unit tests in a separate unit test project. Problem is, class members marked as internal are not...

Part and Inventory Search

Back
Top