...

/

Test Smell: Multiple Assertions

Test Smell: Multiple Assertions

Learn the importance of writing one assert per test.

We'll cover the following...

We’ll sometimes find reasons to assert multiple postconditions in a single test. However, more often the multiple assertions indicate that we have two test cases.

Split me

Our longer test screams, “Split me!” The first case ...