Mastering C# Unit Testing with Real-world Examples
Mastering C# Unit Testing with Real-world Examples, available at $54.99, has an average rating of 5, with 24 lectures, based on 4 reviews, and has 33 subscribers.
You will learn about Use builder methods to simplify your tests Write tests for multiple test values to make your tests more maintainable Choose good names to express the intent of your tests Use simple test values to make your tests easier to follow Write domain-specific assertion methods to have more readable tests This course is ideal for individuals who are C# developers looking to improve their unit testing skills and write readable and maintainable tests or C# developers tired of boring and impractical tutorials that prefer to learn through real-world code examples It is particularly useful for C# developers looking to improve their unit testing skills and write readable and maintainable tests or C# developers tired of boring and impractical tutorials that prefer to learn through real-world code examples.
Enroll now: Mastering C# Unit Testing with Real-world Examples
Summary
Title: Mastering C# Unit Testing with Real-world Examples
Price: $54.99
Average Rating: 5
Number of Lectures: 24
Number of Published Lectures: 24
Number of Curriculum Items: 24
Number of Published Curriculum Objects: 24
Original Price: $24.99
Quality Status: approved
Status: Live
What You Will Learn
- Use builder methods to simplify your tests
- Write tests for multiple test values to make your tests more maintainable
- Choose good names to express the intent of your tests
- Use simple test values to make your tests easier to follow
- Write domain-specific assertion methods to have more readable tests
Who Should Attend
- C# developers looking to improve their unit testing skills and write readable and maintainable tests
- C# developers tired of boring and impractical tutorials that prefer to learn through real-world code examples
Target Audiences
- C# developers looking to improve their unit testing skills and write readable and maintainable tests
- C# developers tired of boring and impractical tutorials that prefer to learn through real-world code examples
You’ve learned the basics of unit testing in C#, but you still struggle with writing tests that are easy to read and maintain.
You’ve seen too many online tutorials testing a Calculator class, but you want to learn how to test real code. Code with dependencies, validations, and edge cases. Code that looks like the code you find every day at work.
That’s why I created this course.
No more unit testing the Add method of a Calculator class.
In this course, let’s refactor some real unit tests to make them more readable and maintainable. Although I changed names, classes, and methods to avoid disclosing code from past clients and employers, these are the tests I had to work with as a software engineer.
You will learn how to transform messy and convoluted tests into readable and maintainable tests using best practices and proven principles and methods.
Who is this course for?
This course is for you if you are:
-
A C# developer who wants to level up your unit testing skills and write better tests
-
A C# developer who is tired of boring and unrealistic tutorials and wants to learn from real code examples
After you follow this course, you will be able to:
-
Use builder methods to simplify your tests
-
Write tests for multiple test values to make your tests more maintainable
-
Choose good names and use simple test values to make your tests easier to follow
-
Write domain-specific assertion methods to have more readable tests
Mastering these skills will help you to write tests easy to follow. The next time you open one of your tests, you won’t need to scratch your head trying to figure out what you were doing.
This is not an introductory course on unit testing. You should have some basic knowledge of writing unit tests with a testing framework like MSTest, a mocking library like Moq, and the Arrange/Act/Assert pattern.
What is inside?
In this course, you will get access to:
-
Eight principles or lessons that cover different best practices for unit testing
-
More than ten unit tests that show real code examples that need refactoring
-
Four exercises that challenge you to apply what you learned and refactor a unit test on your own
-
A checklist that summarizes the best practices from the course
-
Source code of all the unit tests before refactoring them
Course Curriculum
Chapter 1: Introduction
Lecture 1: Getting Started
Chapter 2: On Builders
Lecture 1: Use Builder Methods
Lecture 2: Test IOptions Interface
Lecture 3: Make Test Values Obvious
Chapter 3: On Testing With Multiple Values
Lecture 1: Use Parameterized Tests
Lecture 2: Use FluentValidation Helpers
Lecture 3: Use Parameterized Tests Instead of Loops
Lecture 4: Test a Single Concern Per Test
Lecture 5: Test Exception Messages
Lecture 6: Use Object Mothers
Lecture 7: Exercise: Refactor a Test That Uploads Guests
Chapter 4: On Mocks and Simplicity
Lecture 1: Use Fakes in Unit Testing
Lecture 2: Create Fakes With Moq
Lecture 3: Visually Structure Tests
Lecture 4: Use TypeBuilder
Lecture 5: Avoid Overspecification
Lecture 6: Use Simple Test Values
Lecture 7: Exercise: Refactor a Test That Merges Dictionaries
Chapter 5: On Public Behavior and Hiden Assumptions
Lecture 1: Test Public Behavior
Lecture 2: Create a Custom Verify Method
Lecture 3: Exercise: Refactor a Test That Stores an Email With Duplicated Addresses
Lecture 4: Avoid Hidden Assumptions
Lecture 5: Exercise: Refactor a Test That Updates an Email Status
Chapter 6: Conclusion
Lecture 1: Wrap-up
Instructors
-
Cesar Aguirre
Courses, Workshops, and Training for .NET teams
Rating Distribution
- 1 stars: 0 votes
- 2 stars: 0 votes
- 3 stars: 0 votes
- 4 stars: 0 votes
- 5 stars: 4 votes
Frequently Asked Questions
How long do I have access to the course materials?
You can view and review the lecture materials indefinitely, like an on-demand channel.
Can I take my courses with me wherever I go?
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!
You may also like
- Top 10 Video Editing Courses to Learn in November 2024
- Top 10 Music Production Courses to Learn in November 2024
- Top 10 Animation Courses to Learn in November 2024
- Top 10 Digital Illustration Courses to Learn in November 2024
- Top 10 Renewable Energy Courses to Learn in November 2024
- Top 10 Sustainable Living Courses to Learn in November 2024
- Top 10 Ethical AI Courses to Learn in November 2024
- Top 10 Cybersecurity Fundamentals Courses to Learn in November 2024
- Top 10 Smart Home Technology Courses to Learn in November 2024
- Top 10 Holistic Health Courses to Learn in November 2024
- Top 10 Nutrition And Diet Planning Courses to Learn in November 2024
- Top 10 Yoga Instruction Courses to Learn in November 2024
- Top 10 Stress Management Courses to Learn in November 2024
- Top 10 Mindfulness Meditation Courses to Learn in November 2024
- Top 10 Life Coaching Courses to Learn in November 2024
- Top 10 Career Development Courses to Learn in November 2024
- Top 10 Relationship Building Courses to Learn in November 2024
- Top 10 Parenting Skills Courses to Learn in November 2024
- Top 10 Home Improvement Courses to Learn in November 2024
- Top 10 Gardening Courses to Learn in November 2024