Leaking domain knowledge to tests

added by DotNetKicks
1/30/2018 2:54:59 PM

1 Kicks, 198 Views

I'm continuing the series about unit testing anti-patterns I started a couple months ago. This article is about leaking domain knowledge to tests. Leaking domain knowledge is another quite common anti-pattern. You can often see it in tests that aim at complex algorithms. Let's take this SUT for example: View the code on Gist.