When testing a unit of code requires other elements within the application, creating a unit test can be somewhat extra challenging. Moq is a . NET library that eases this process by permitting the creation of mock objects. This enables you to test your code without worrying about what it depends on, particularly important modules. A great course in this regard is the Mocking with Moq 4 and NUnit course introduced by Jason Roberts.
In this course, you will learn on how to use mock objects to replace real dependencies when testing. You will learn how to configure these mock objects to mimic various behaviours like methods, properties, exceptions, events, etc. Besides, the course also comprises issues such as how to develop tests in the scope of behaviour and how to mock classes partially. At the end of this course, ‘Mocking with Moq 4 and NUnit,’ you should be able to use Moq and write improved automated tests, improving your testing process.
Mocking with Moq 4 and NUnit Table of Contents:
- Course Overview - 1 min
- Getting Started with Moq - 27 mins
- Configuring Mock Method Return Values - 20 mins
- Working with Mock Properties - 17 mins
- Checking That Mock Methods and Properties Are Used - 20 mins
- Using Partial Mocks and Advanced Mocking Techniques - 25 mins
Who is this course for?
- Software Developers: If you are seeking effective ways to enhance the quality of your unit testing and write quality code in the process,
- QA Engineers: For those who are interested in knowing how to test some parts of a system isolated from the other parts.
- . NET Developers: This is particularly helpful if you work in an environment where changing the PC setting usually requires assistance from an administrator. NET is now looking for a way to test with Moq & NUnit.
- Intermediate Testers: These people have some testing experience and would like to dive deeper into the knowledge about mocking and automated testing.
- Team Leads and Managers: Ideal for the persons or organizations that wish to promote effective testing in development groups.
Click on the links below to Download Mocking with Moq 4 and NUnit!
You are replying to :