Complete Guide to Unit Testing in .NET Core (NUnit and xUnit) [Video]
Video
Video
$109.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
What do you get with video?
What do you get with video?
What do you get with Audiobook?
What do you get with Exam Trainer?
Video
$109.99
Subscription
$15.99
$10 p/m for three months
What do you get with a Packt Subscription?
This book & 7000+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with Video + Subscription?
Download this video in MP4 format, plus a monthly download credit
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with a Packt Subscription?
This book & 6500+ ebooks & video courses on 1000+ technologies
60+ curated reading lists for various learning paths
50+ new titles added every month on new and emerging tech
Early Access to eBooks as they are being written
Personalised content suggestions
Customised display settings for better reading experience
50+ new titles added every month on new and emerging tech
Playlists, Notes and Bookmarks to easily manage your learning
Mobile App with offline access
What do you get with eBook?
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Download this book in EPUB and PDF formats
Access this title in our online reader
DRM FREE - Read whenever, wherever and however you want
Online reader with customised display settings for better reading experience
What do I get with Print?
Get a paperback copy of the book delivered to your specified Address*
Access this title in our online reader
Online reader with customised display settings for better reading experience
What do you get with video?
Download this video in MP4 format
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with video?
Stream this video
Access this title in our online reader
DRM FREE - Watch whenever, wherever and however you want
Online reader with customised display settings for better learning experience
What do you get with Audiobook?
Download a zip folder consisting of audio files (in MP3 Format) along with supplementary PDF
What do you get with Exam Trainer?
Flashcards, Mock exams, Exam Tips, Practice Questions
Access these resources with our interactive certification platform
Mobile compatible-Practice whenever, wherever, however you want
-
Free ChapterIntroduction to the Course
-
First Unit Test
-
Unit Testing
- Create NUnit Project
- First NUnit Test
- Debug and Assert
- Assignment 1 - Odd Number Checker
- Assignment 1 Solution - Odd Number Checker
- Assertion Model
- Testing Multiple Values
- Combine Unit Test with Expected Result
- Asserting Doubles
- Asserting String Values
- String Assert Helper Methods
- Asserting Null Values
- Global Initialization for Class
-
NUnit Testing – Advance Concepts
- Asserting Collections
- Collections Helper Method
- Range Assert
- Multiple Assert
- Working with Exceptions
- Exceptions without Message
- Set Up Inheritance
- Assert Object Type
- Assignment 2 - Grading Calculator Part 1
- Assignment 2 - Grading Calculator Part 1 Solution
- Assignment 2 - Grading Calculator Part 2
- Assignment 2 - Grading Calculator Part 2 Solution
- Assignment 3 - Fibo Series
- Assignment 3 - Fibo Series Solution
-
MOQ with Unit Testing
- Set Up Bank Account Class
- Setting Up Logger Class
- Integration Test Demo
- Unit Test with Fake Logger
- Mocking Overview
- MOQ in Action
- Missing MOQ
- Setting Up LogBook Withdrawal
- MOQ Setup with Conditional Return
- MOQ Setup Default Return Value
- MOQ Evaluate the Return Value
- MOQ and Out Parameters
- MOQ and Ref
- MOQ Default Return Values
- MOQ Properties
- MOQ Callbacks
- MOQ Verification
-
xUnit
- Create xUnit Project
- xUnit Comparison
- xUnit Calculator Part 1
- xUnit Calculator Part 2
- Assignment 4 - Grading Calculator
- Assignment 4 - Grading Calculator xUnit Solution
- Assignment 5 - Fibo Series xUnit
- Assignment 5 - Fibo Series xUnit Solution
- MOQ and xUnit
- Customer xUnit
- Assignment 6 - Bank Account xUnit
-
Real-World Example - NUnit
- Set Up Main Project
- Bongo Project Code Overview
- Bongo Models Date Checker Part 1
- Bongo Models Date Checker Part 2
- Set Up Data Access Unit Test Project
- In-Memory Database and Unit Testing
- Data Access Unit Tests
- Data Access Unit Tests Bugs and Pitfalls
- Set Up Bongo Core Unit Test Project
- Bongo Core MOQ Setup and GetAllBooking Test
- Bongo Core Exception Unit test
- Bongo Core Save Booking Setup
- Bongo Core Save Booking Unit Test
- Bongo Core Return Code TestCase
- Bongo Core Separating Unit Tests
- Bongo Web Test Project Setup
- Bongo Web Index Action Method Unit Test
- Bongo Web Checking View Name
- Bongo Web Controller Unit Tests
About this
video
“Production application can break with a simple change that was unexpected to alter any other functionality.” Sounds familiar, right?
The good news is, with well-written unit tests, this would be a thing of the past.
Automated testing has been a buzzword for a while, but many times developers struggle to find a course that covers the fundamentals of unit testing while implementing what they learned in a real-world project! That is the focus of this course.
This course is all about writing effective unit tests using C# programming language and NUnit/xUnit as a unit testing framework. Along the way, you will learn the concepts related to unit testing. Today, unit testing is an absolutely required skill from any professional developer. Companies expect developers to know how to write unit tests using the best practices. This course will help you set up a solid foundation with a real-world example and how unit testing could be done in a .NET core web application with EF Core.
By the end of this course, you will have a solid foundation with unit testing. Along with a solid foundation, you will also implement what is learned in real-world N-Tier web applications with .NET 6 and EF Core.
All the code files and resource files are added to the GitHub repository at: https://github.com/PacktPublishing/Sparky
- Publication date:
- October 2021
- Publisher
- Packt
- Duration
- 5 hours 17 minutes
- ISBN
- 9781803248660