Learn Unit Testing with NUnit and C#
Learn Unit Testing with NUnit and C#, available at $74.99, has an average rating of 4.33, with 94 lectures, 1 quizzes, based on 1679 reviews, and has 8567 subscribers.
You will learn about Write Unit Tests Run and Debug Unit Tests Write Manual Mocks Write Mocks with Mocking Framework Practice Test-Driven Development (TDD) Apply Best Practices of Writing Unit Tests This course is ideal for individuals who are Beginners who want to write better code or Anyone who is interested in Unit Testing It is particularly useful for Beginners who want to write better code or Anyone who is interested in Unit Testing.
Enroll now: Learn Unit Testing with NUnit and C#
Summary
Title: Learn Unit Testing with NUnit and C#
Price: $74.99
Average Rating: 4.33
Number of Lectures: 94
Number of Quizzes: 1
Number of Published Lectures: 94
Number of Published Quizzes: 1
Number of Curriculum Items: 95
Number of Published Curriculum Objects: 95
Original Price: $29.99
Quality Status: approved
Status: Live
What You Will Learn
- Write Unit Tests
- Run and Debug Unit Tests
- Write Manual Mocks
- Write Mocks with Mocking Framework
- Practice Test-Driven Development (TDD)
- Apply Best Practices of Writing Unit Tests
Who Should Attend
- Beginners who want to write better code
- Anyone who is interested in Unit Testing
Target Audiences
- Beginners who want to write better code
- Anyone who is interested in Unit Testing
Learn deeply the concepts and tools that you will need to build maintainable and reliable software.
Teaching Approach
No fluff, no ranting, no beating the air. I respect your time. The course material is succinct, yet comprehensive. All important concepts are covered. Particularly important topics are covered in-depth.
Take this course, and you will be satisfied.
Build a solid foundation in Unit Testing with this course
This course is all about writing effective unit tests using C# programming language and NUnitas a unit testing framework. Along the way, we will learn the concepts related to unit testing. Today unit testing is an absolutely required skill from any professional developer. Companies expect from developers to know how to write unit tests including all the most important topics such as mockingand test driven development (TDD in short). This course does not cover all the features of NUnit. This course is way more interesting.
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. It provides solid theoretical base reinforced by tons of practical material.
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 NUnitframework. 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
Practicing writing of unit tests, it’s impossible to avoid applying mocks. I like the word “test double” more, in general. By the way, you’ll learn what the difference between the following notion is:
-
Test double
-
Fake
-
Dummy
-
Stub
-
Mock
You’ll learn how to write test doubles manually. You will also see a simple example of how to use a mocking framework for using mocks. I’ll use NSubstitutemocking framework for demonstration.
At the end of this section, you’ll get acquainted with two key approaches to unit testing, Classic or Detroit School and London School of unit testing.
You’ll separately learn the basic of test-driven development. It is hard to imagine a modern professional developer who doesn’t know about TDD, so you’ll learn what it is and what it is about. You’ll see the Red-Green-Refactor triplet in action.
I could not complete the course avoiding the best practices of writing unit tests. You’ll learn the basic concepts of the modern approach to unit testing called “pragmatic unit testing”. You’ll see what problems static classes and singletons bring regarding the unit testing. They make code harder to unit test. After that, you’ll learn the problem of extracting interfaces just for the sake of introducing shims for injecting dependencies.
You’ll know should you write unit tests for the trivial code. You’ll learn a lot more in the course.
So, in short, the course covers the following topics:
-
Basic notions of Unit Testing
-
NUnit and its features
-
Test Doubles including fakes, dummies, stubs, spies and mocks
-
How to write manual test doubles and how to use a mocking framework (NSubstitute)
-
TDD, red-green-refactor triplet
-
A great number of best practices of writing unit tests
-
Introduction to Dependency Injection
In the end, we will recap what you have learned, and you will try to understand where you have to go further with the intention to master your skills.
How long is this course: The course is around 7.5 hours. All are video lectures. You will be able to download all the slides and code samples used in the course.
————————————————————
Keywords related to the course:
-
Visual Studio unit testing tutorial
-
NUnit unit testing tutorial
-
Dot Net testing framework
-
C# unit test framework
-
Visual Studio unit testing framework tutorial
-
csharp unit testing tutorial
-
TDD in C#
-
NSubstitute
-
TDD
-
Test Driven Development
-
unit testing C#
Course Curriculum
Chapter 1: Before taking the Course
Lecture 1: How to Ask Questions
Lecture 2: Download Source Code and Slides
Lecture 3: English Subtitles
Lecture 4: Join .NET Community of Students
Chapter 2: Getting Started
Lecture 1: Outline
Lecture 2: What is a Unit Test?
Lecture 3: Unit-Testing Frameworks
Lecture 4: Your First Unit Test
Lecture 5: Naming Conventions
Lecture 6: Running and Debugging Unit Tests
Lecture 7: Benefits of Unit Testing
Lecture 8: Who Should Write Unit Tests and When
Lecture 9: Programmer's Oath
Lecture 10: Exercise: Degree Converter
Lecture 11: Solution: Degree Converter
Lecture 12: Conclusion
Chapter 3: NUnit Framework
Lecture 1: Outline
Lecture 2: Assert Introduction
Lecture 3: Assert Demo
Lecture 4: Arrange-Act-Assert
Lecture 5: Running Tests from the Console
Lecture 6: SetUp and TearDown
Lecture 7: OneTimeSetUp and OneTimeTearDown
Lecture 8: Parameterized Unit Tests
Lecture 9: Grouping and Ignoring Unit Tests
Lecture 10: Code Coverage
Lecture 11: Exercise: FizzBuzz
Lecture 12: Solution: FizzBuzz
Lecture 13: Exercise: Roman Numerals
Lecture 14: Solution: Roman Numerals
Lecture 15: Exercise: Stack
Lecture 16: Solution: Stack
Lecture 17: Conclusion
Chapter 4: Test Doubles
Lecture 1: Test Doubles and Dependency Injection
Lecture 2: Outline
Lecture 3: Demo of a Testing Problem
Lecture 4: Refactoring to Make Code Testable
Lecture 5: Test Doubles
Lecture 6: Hand Rolled or Manual Test Doubles
Lecture 7: Problems with Manual Test Doubles
Lecture 8: Mocking Frameworks
Lecture 9: Writing Unit Tests with a Mocking Framework
Lecture 10: NSubstitute Mocking Framework. Key Features. Demo
Lecture 11: Detroit School vs London School of Unit Testing
Lecture 12: Conclusion
Chapter 5: Test-Driven Development
Lecture 1: Outline
Lecture 2: What is TDD?
Lecture 3: Red Green Refactor
Lecture 4: TDD and Design Upfront
Lecture 5: Regular Agile Process in 200 Words
Lecture 6: VS and R# Shortcuts
Lecture 7: Refactoring Commands Built-In VS 2017
Lecture 8: Fibonacci Numbers
Lecture 9: Three Main TDD Techniques
Lecture 10: Grabbing the Gold
Lecture 11: FizzBuzz
Lecture 12: Reading Roman Numerals
Lecture 13: UpdateableSpin
Lecture 14: Continuous Testing
Lecture 15: Tic-Tac-Toe (Crosses and Noughts)
Lecture 16: Assert First
Lecture 17: TDD Demo – Game in Sticks
Lecture 18: Conclusion
Chapter 6: Best Practices of Unit Testing
Lecture 1: Outline
Lecture 2: Do Unit Tests Guarantee the Success?
Lecture 3: Pragmatic Unit Testing
Lecture 4: Integration Tests
Lecture 5: Singletons and Static Classes
Lecture 6: Header Interfaces
Lecture 7: Demo of Refactoring to a Testable Design
Lecture 8: How Much Test Coverage is Enough?
Lecture 9: Testing Trivial Code
Lecture 10: The Rule of Testing a Single Concern
Lecture 11: More on Best Practices
Lecture 12: Generating Unit Test Method Signatures
Lecture 13: Conclusion
Lecture 14: BONUS LECTURE
Chapter 7: Appendix. Intro to Dependency Injection
Lecture 1: Outline
Lecture 2: Definition of DIP
Lecture 3: Dependencies
Lecture 4: Volatile and Stable Dependencies
Lecture 5: Definition of IoC and DI
Lecture 6: DIP Violation Demo
Lecture 7: Refactoring to a Better Design
Lecture 8: Dependency Injection Techniques
Lecture 9: Architectural Implications
Lecture 10: Common Smells of DIP Violation
Lecture 11: Conclusion
Chapter 8: Appendix. Intro to DI. IoC-Containers
Lecture 1: Outline
Lecture 2: Pure DI and IoC-Containers
Lecture 3: Building a Simple IoC-Container
Instructors
-
Engineer Spock
Software Engineer – 1000+ Reviews, Average Score – 4.5
Rating Distribution
- 1 stars: 24 votes
- 2 stars: 29 votes
- 3 stars: 231 votes
- 4 stars: 674 votes
- 5 stars: 721 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 Language Learning Courses to Learn in November 2024
- 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