Companies Home Search Profile

Mastering Unit Testing in C#: A Beginner's Guide

Focused View

Kenji Elzerman

57:04

92 View
  • 1. Introduction.mp4
    00:34
  • 2. Requirements.mp4
    00:33
  • 1. What is unit testing.mp4
    00:48
  • 2. Why unit testing.mp4
    00:55
  • 3. Assertions.mp4
    00:42
  • 4. NUnit vs XUnit.mp4
    01:52
  • 1. Basic unit test.mp4
    21:29
  • 2. Refactoring some code.mp4
    03:02
  • 3. Testing exceptions.mp4
    07:28
  • 4. Mocking.mp4
    19:19
  • 5. Create the right assertion.html
  • 1. Conclusion.mp4
    00:22
  • Description


    Learn the basics of C# unit testing with XUnit

    What You'll Learn?


    • Understand the idea behind unit testing
    • Learn the differences between NUnit and XUnit
    • Identify test cases
    • Create a basic unit test
    • Test exceptions with actions
    • Understand and implement mocking with MOQ

    Who is this for?


  • This course is for beginners that have some experience with C# and want to learn unit testing.
  • Advanced C# developers can use this course as a refreshment.
  • More details


    Description

    While coding is fun and all, you need to make sure your code is always working. When something goes wrong customers usually blame the developers, but 7 out of 10 times it’s a wrong input but the customer. 2 out of 10 times it’s a logic problem (“well, didn’t see that one coming”), and 1 out 10 times its a developers error.

    We, developers, cannot think for a customer or all the things a user can do. But we can make sure our code works as it should. Therefore, we should test our code. Not the application, but the logic that makes the application work. This is what we call ‘unit testing’.

    In this course, I will explain and show you the basics of C# unit testing. I will start with the basic theory of unit testing and the difference between NUnit and XUnit, the two most test frameworks for C# and .NET. Other subjects are assertions, exception testing, and mocking are really important to know and explained. With some practical examples, I will show you how to use and implement them.

    For this course, it is convenient if you have some experience with C# and .NET. You don't need any knowledge of unit testing, because that's what this course is all about.

    Who this course is for:

    • This course is for beginners that have some experience with C# and want to learn unit testing.
    • Advanced C# developers can use this course as a refreshment.

    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Kenji Elzerman
    Kenji Elzerman
    Instructor's Courses
    Kenji has been a teacher for people with ADHD and autism. Setting up a complete new C# course and all other subjects that are important for people starting with C# and other Microsoft techniques and frameworks. Besides being a teacher, Kenji has been a developer for over 20 years. Most of the time using Microsoft techniques and frameworks, with some AngularTS and PHP (WordPress) on the side.
    Students take courses primarily to improve job-related skills.Some courses generate credit toward technical certification. Udemy has made a special effort to attract corporate trainers seeking to create coursework for employees of their company.
    • language english
    • Training sessions 11
    • duration 57:04
    • Release Date 2023/04/27