Freigeben über


Visual Studio Unit Testing Examples

If you work in Visual Studio odds are you have written a few unit tests. In today's development landscape unit testing is just part of the daily routine. For those of you are who are new to unit testing and need a little guidance, I just uploaded library of unit testing examples and labs. The sample code and labs cover the very basics to more in-depth materials such as dependency injection, mocking, and TDD. Here is a list of the subjects that are covered.

  1. MSTest Unit Testing Basics
  2. XUnit
  3. Mocking
  4. Mocking Frameworks
  5. Dependency Injection
  6. TDD
  7. Data Driven Tests
  8. SSDT (Testing Stored Procedures)
  9. Exceptions
  10. Testing your JavaScript
  11. Jasmine
  12. Web Api Rest Services

I work with a lot of customers who are just starting to dive into unit testing and thought this material would be helpful for others getting their feet wet. Take and look and feel free to provide feedback. If you are looking for additional sample code please post a comment and I will do my best to add it to the repository.

 

https://github.com/MellehNad/UnitTestingExamples

Comments

  • Anonymous
    March 03, 2015
    I wasn't sure how to contact you - I couldn't find your email. These examples apparently go along with a lab of some sort. Where can we find the lab that walks through these examples?
  • Anonymous
    March 31, 2015
    Hey James,The relevant labs are in the respective folders in the sample code. Not all folders have a lab.