Code4IT

Tag – Tests

5 posts tagged with "Tests" (See all tags)

How to run integration tests for .NET API

You already write Unit tests, right? But sometimes you want to perform more deep tests, and test not only a small part of your code but the whole execution. In this article, I'm going to explain how to run integration tests on your APIs without…

How to mock dependencies with Manifest resources

It happened that I needed to read a really complex JSON from an external API and elaborate it to adapt the result to my business needs. To test the correctness of those elaborations, I obviously set up a test suite. But the object structure from that…

MSTest CollectionAssert class - an overview

This is the third part of our journey. In the first part we listed the methods belonging to the Assert class, while in the second part we had a look at the StringAssert class. Now we'll deep dive into the CollectionAssert class, that is a good fit…

MSTest StringAssert class - an overview

This is the second part of our journey through the Unit Test classes provided with VisualStudio. We already had a look at the class, where had a glimpse of its methods. Now we'll have a look at the StringAssert class, that, as you can imagine…

MSTest Assert class - an overview

You know, Unit Tests are our friends. Usually skipped, often misused, but they are still with us. With or without mocks, they can help us while creating an application, ensuring that the methods we create do what they are supposed to do. In this…