Mocking with Moq and xUnit
This course is a part of C# Unit Testing with xUnit, a 10-course Paths series from Pluralsight.Writing unit tests can be difficult, time-consuming, and slow when you can't isolate the classes you want to test from the rest of the system. In this course, Mocking with Moq and xUnit, you'll learn how to create mocks and use them as dependencies to the classes you want to test. First, you'll discover how to configure mocked methods and properties to return specific values. Next, you'll learn how to perform behavior/interaction testing to check your classes are interacting correctly with their dependencies. Finally, you'll explore how to setup mock exceptions, mock events, and use additional mocking techniques. When you're finished with this course, you'll have the necessary knowledge to use Moq to unit test your classes in isolation by creating and using mock objects.
Get a Reminder
Not ready to enroll yet? We'll send you an email reminder for this course
Get a Reminder
Get an email reminder about this course
An overview of related careers and their average salaries in the US. Bars indicate income percentile.
Writing Tutor 6 $22k
Writing Coordinator $39k
Teaching Writing $44k
Lecturer in Writing $44k
Writing Counselor $52k
Writing Tutor, Writing Center $55k
Writing Tutor, Business Writing Center $56k
Writing Analyst $60k
Writing Tutor, Writing Center Fellow $61k
technical writing $79k
Writing Instructor (University Writing) $80k
Write a review
Your opinion matters. Tell us what you think.