access modifiers

Unit Testing while maintaining access restrictions

Unit Testing while maintaining access restrictions

Let’s start off by saying that if you’re not writing Unit Tests….you should.  Unit testing is everywhere these days, from Bootcamps, to tutorials, to books.  There is a good reason behind this too.  Unit tests help developers create a fully functional, bug-free applications.  Giving near instant feedback on whether you just broke your code or not can save many headaches in the long run.  I see many of those new to unit testing falling trap to a common pitfall: Changing access modifiers.  Let’s take a look at how to write your unit tests without having to change your modifiers.

Continue reading →

Posted by DCCoder in Programming, Tutorials, 0 comments