paint-brush
Best Practices to Write Unit Tests the Right Wayby@powerz
483 reads
483 reads

Best Practices to Write Unit Tests the Right Way

by Aleksei Zagoskin15mMay 12th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

There are countless articles on the web about unit tests: [TDD approach] and mocking frameworks. However, these articles are either too "Hello World"-like or focus more on tools, while missing the key point — how to write unit tests that are useful and deliver the most value? In this article, I'll share some best practices, which I believe will get your unit tests to the next level. This will be an example-driven article as in my view, this is the best way to explain things in programming. We're going to start with a code example (a C# class plus a few unit tests for this class)

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Best Practices to Write Unit Tests the Right Way
Aleksei Zagoskin HackerNoon profile picture
Aleksei Zagoskin

Aleksei Zagoskin

@powerz

Create scalable, high-load, fault tolerant and distributed backend services and APIs.

About @powerz
LEARN MORE ABOUT @POWERZ'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Aleksei Zagoskin HackerNoon profile picture
Aleksei Zagoskin@powerz
Create scalable, high-load, fault tolerant and distributed backend services and APIs.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Newsbreak
Platypush
Joyk
Ktachibana
Coffee-web
Digg
Gaoyy
Allella
Numblr
Tokhmi