How do we validate arguments in unit tests?
Unit testing Everyone knows unit testing is an important but often forgotten part of software development. I’ve been there where it seems to be more convenient to leave out unit tests because we don’t have enough time to unit test a function or i tmight be just a bit too annoying to mock up some services to unit tests. However, over the years, I’ve grown to appreciate unit tests and what they do as it can help us avoid unnecessary bugs that can occur when we inadvertently edit a function and change the way it’s supposed to work....