Integration tests are useful to check if multiple components fit together well. How can you test your APIs? And how can you mock dependencies?
Continue reading
You’re using DateTime.Now, aren’t you? Be careful, because it may bring some troubles to your application. Here I’ll explain why and I’ll talk about time zones and formatting in C# DateTime.
Continue reading
I don’t have to tell you why you need to write clean code. Here you’ll see some tips about how to name things and how to structure functions
Continue reading
Sometimes on your tests you need to access test files, for example for mocking external data. With manifest resources you can easily reference files for your tests.
Continue reading
BenchmarkDotNet allows you to test the performance on .NET methods. So let’s answer a question: is the Enum.HasFlag method really that slow?
Continue reading
Internal members can be accessed only within the same assembly. And for different assemblies? Here’s for you the InternalsVisibleTo attribute!
Continue reading