Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Beginners Guide to Unit Testing with NUnit and C#
Rating: 4.3 out of 5(984 ratings)
21,891 students

Beginners Guide to Unit Testing with NUnit and C#

Learn the basics of unit testing with NUnit and C#.
Created byEngineer Spock
Last updated 7/2020
English

What you'll learn

  • Write simple unit tests in C# using the NUnit framework

Course content

2 sections34 lectures1h 52m total length
  • About the Course0:27
  • Download Source Code and Slides0:04
  • Join .NET Community of Students0:02
  • BONUS0:35
  • Outline0:58
  • What is a Unit Test?3:11
  • Unit-Testing Frameworks3:25
  • First Unit Test8:49
  • Naming Conventions4:34
  • Running and Debugging Tests in Visual Studio5:02

    Navigate Visual Studio's test explorer to build, discover, and run NUnit tests, create test playlists, run or debug individual tests with breakpoints, group tests, and enable test execution after builds.

  • Benefits of Unit Testing3:35
  • Who should write unit tests and When?2:51
  • Programmer's Oath3:29

    Explore programmer responsibility and the role of unit testing and test-driven design in ensuring safe, reliable software through vows of honesty, frequent incremental releases, and continuous improvement.

  • Exercise: Degree Converter1:29
  • Solution: Degree Converter6:54
  • Conclusion1:15

Requirements

  • Basic Skills in C#

Description

This course is all about writing unit tests using C# programming language and NUnit as a unit testing framework. Today unit testing is an absolutely required skill from any professional developer. Companies expect from developers to know how to write unit tests.

Learning unit testing puts a powerful and very useful tool at your fingertips. Being familiar with unit testing you can write reliable and maintainable applications. It is very hard to lead a project which is not covered by unit tests.

Content and Overview

This course is primarily aimed at beginner developers.

We start with basics of unit testing. What is a unit test? What unit testing frameworks exist? How to run and debug unit tests. After getting acquainted with the basics, we will get to the NUnit framework. Here you’ll learn how to install the framework, set the runner. Then you’ll learn the basics of assertions and arrange-act-assert triplet. Other key features of NUnit are also covered:

  • Running tests from the console
  • Setup and teardown unit tests
  • Parameterized tests
  • Grouping and ignoring

Who this course is for:

  • Anyone who wants to learn the basic of unit testing