Posts

Showing posts from February, 2019

Testing Framework

Image
Now, let's talk about MSTest, its a unit testing framework that allows us to create and run the tests We can use MSTest testing framework for writing our unit/integration/e2e(UI tests) Before we jump into details of MSTest, we will talk about different types of tests and the testing pyramid Types of tests Unit Testing smallest units of code Integration Units of code are integrated with each other and tested E2E Verify system meets requirements, testing the entire system from end to end Test Pyramid Above image is self-explanatory, so one should write as many unit tests as he can for testing application As you climb the pyramid, test execution time increases that is unit tests are faster than UI Also, the brittleness of test increases that is UI test is most brittle compared to the unit test. I have created a simple project to calculate tax based on the price of an item, we will walk through the code and then write some unit te...