From Unit Testing, Principles, Practices, and Patterns by Vladimir Khorikov
From Unit Testing, Principles, Practices, and Patterns by Vladimir Khorikov
In this article I’ll give you a refresher on some basic topics. I’ll go over the structure of a typical unit test, which is usually represented by the Arrange-Act-Assert pattern. I’ll also show the unit testing framework of my choice — xUnit — and explain why I’m using it and not one of its competitors.