Blog for Junior Developers C#/.NET

In this article I wanted to tell you about a library that can help you improve your unit testing in C#. It's the FluentAssertions library, which provides us with a lot of extension methods that allow us to write better, so-called fluent [...]
Fluent Assertions in Unit Testing
Writing good unit tests is not easy. Especially the first tests can be a bit difficult for you, so to help you I wanted to present you 7 in my opinion the most common mistakes beginners make when writing unit tests, which you should [...]
7 Common Mistakes Programmers Make When Writing Unit Tests
Today I will discuss a very important topic, without knowing which, you will not learn how to write good unit tests. As you have read in previous articles, unit tests should not touch external resources. So how to test the logic in [...]
How to Get Rid of External Dependencies in Unit Tests? Introduction to Mocking Data in C#
Test Driven Development, abbreviated as TDD, i.e. test-driven software development. That is, as if the tests drive our code that we will write. I think TDD has been heard by every programmer, but few of them have ever tried to write [...]
Test Driven Development: Benefits of Using TDD on an Example in .NET
I'm often asked whether you should write unit tests for private or protected methods. Or how to test private methods in C#. Today I will try to briefly answer these questions. To make it easier for you to understand this problem, I [...]
Whether to Unit Test Private Methods - Examples in C#
In a previous blog post, I introduced you to automated testing. If you haven't read it yet, be sure to check it out before reading this article. Unit tests are one of the types of automatic tests. In this article, I will first tell you a little [...]
Unit Tests 100% What You Need to Know About Them
Automation tests, i.e. code that tests another piece of code. As the name suggests, these are automatic tests, thanks to them we can test our applications often and quickly - if we want to test some functionality in our application [...]
Automation Tests Explained in One Article
© Copyright 2024 CodeWithKazik.com. All rights reserved. Privacy policy.
Design by Code With Kazik and Modest Programmer.