Why write extra code? Wouldn’t that take extra time to write? This would slow you down. It would be faster to just run the application as an end-user.
Mosh Hamedani – Unit Testing for C# Developers
Imagine the following: After making a minor change to your code, you suddenly discover that you’ve created 12 unexpected bugs. Do you feel this is happening to you? You’re not alone!
Unit testing is a great option to make this obsolete.
Maybe you’ve heard of automated or unit testing before and you’re keen to learn more.
Or perhaps you’ve tried to learn it and got a bit lost or ended up with fat and fragile tests that got in the way and slowed you down.
Whatever your situation, you will need a course to teach you everything you need about this skill, from the basics to the advanced.
What is unit testing?
In a nutshell: it’s the practice of writing code to test your code and then run those tests in an automated fashion.
Why not learn unit testing?
Why write extra code? Wouldn’t that take extra time to write? This would slow you down. It would be faster to just run the application as an end-user.
People make this mistake all the time. It was a mistake I made. I’ve had to learn the hard way!
I learned pretty fast that if you’re building a complex application or working on a legacy app, manually testing all the various functions is tedious and takes a significant amount of time.
The cost of manual testing increases exponentially as your application gets larger. And you’re never 100% sure if you’ve fully tested all the edge cases. You’re never confident that your code really works until you release your software and get a call from your boss or an end user!
Numerous studies have shown that bugs are more expensive to businesses if they are caught later in the software development process.
Automated tests help you to catch bugs earlier in the software development lifecycle, right when you’re coding. These tests can be repeated. These tests can be repeated over and over again.
Unit tests offer the following benefits:
Help you find and fix bugs before you release your app to production
Help you write code that is more efficient and has fewer bugs
Software with better design, extensible and loosely structured.-Couple
give you rapid feedback and tell you if your code *really* works
force you to think of edge cases that you didn’t realize existed
Test your code quicker
When you write new codes, be sure to tell us if you have broken any functionality
Allow you to refactor code with confidence
Documentation about the code you have written
Save time and money
A valuable skill for senior developers
More and more companies are recognizing the advantages of automated testing, that’s why it’s a must-Have for Senior coders. If you’re looking to reach the higher levels in your coding career, this course can help.
You don’t need any prior knowledge of automated testing. It takes only three months to program in C#.
With this course you’ll learn:
Senior coder secrets – Best practices to write great unit test
Tips and tricks to ensure your tests are reliable, trustworthy, and easy to maintain
the pitfalls to avoid – anti-The patterns
How to refactor legacy, non-testable code into loosely-Code that can be tested and coupled
all about dependency injection – the one thing every coder needs to know
the power of mocks – when and how to use them and when to avoid
You’ll get:
HD Video for 5.5 Hours
tutorials and guidance from a senior coder with 15+ years’ experience
Exercises with step-By-Step by step solution
Downloadable source code
Access for life
You can access the internet or offline anytime, anywhere on any device.
Present your certificate of completion to your current employer or prospective employer
Join 38388 other happy students
Your instructor
Mosh Hamedani
Mosh Hamedani
Hi! Hello! Mosh Hamedani. I am a software engineer with over 20 years of experience. Through my YouTube channel and online courses, I have taught millions how to code as well as how to become a professional software engineer.
Coding should be fun for all.
Download it immediately Mosh Hamedani – Unit Testing for C# Developers
Course Curriculum
45m – Getting ed
What is Automated Testing (2:40)
Automated has many benefits Testing (2:37)
Types and types of tests (4:00).
Test Pyramid (2:55)
The Tooling (2.52)
Source Code (0.15)
Your First Draft Unit Test (10.27)
Testing All Execution Routes (5:22).
Refactoring with Confidence (2.14)
Using NUnit in Visual Studio (3:59)
What is Test?-Driven Development (3.19)
Course Structure (1.46)
Summary (0.41)
Follow Me Around
Fundamentals of Unit Testing (40m)
Introduction (0,47)
Characteristics of good Unit Tests (2.03)
What to Test and Not to Test (3.00)
Naming and Organizing Testing (2:36).
Introducing Rider (1.52)
A simple way to write a letter Unit Test (3.52)
Black-box Testing (4:43)
Set up and tear it down (3:36)
Parameterized tests (3:25)
Ignoring tests (1:33).
Writing trustworthy tests (6:11
Developers Who Writes Tests? (3:51)
Summary (1:33).
Core Unit Testing Techniques (50m)
Introduction (0,32)
Testing Strings (5.50)
Testing Arrays & Collections (6.11)
Testing The Return Type of Methods (4.02)
Testing Void Methods (4:41)
Testing Methods That Throw Exceptions (4.10)
Testing Methods that raise an event (4:34).
Testing Private Methods (9.50)
Code Coverage (2:30)
Testing In the Real-world (2:32).
Summary (0.46)
Exercises (20m)
Exercise- FizzBuzz (1:19)
Solution- FizzBuzz (6:19)
Exercise- DemeritPointsCalculator (0:54)
Solution- DemeritPointsCalculator (9:43)
Exercise- Stack (0.49)
Solution- Stack (14.55)
1h: Breaking External Dependencies
Introduction (2:16).
Loosely-Coupled and Testable code (3:34).
Refactoring towards a loosely-Coupled Design (9:42).
Dependency Injection via Method Parameters (5:09)
Dependency Injection via Properties (2:41)
Dependency Injection via Constructor (4:22)
Dependency Injection Frameworks (3:26)
Mocking Frameworks (1.55)
Moq (6.47): Making Mock Objects
State-Interaction vs. based Testing (1:54)
Testing The Interaction Between Two Objects (3.40)
Fake as Little as Possible (3.10)
A Mock Abuse Example (4:54).
Who Should Write Tests (2.01)
Excercises (45m)
Exercise-Video Service (1.11)
Refactoring VideoService (5.47)
Testing VideoService (7.55)
Exercise- InstallerHelper (1:26)
Refactoring InstallerHelper (4:47)
Testing InstallerHelper (8:05)
EmployeeController (2.37)
Refacatroing EmployeeController (5:24)
Testing EmployeeController (4:00)
Project- Testing BookingHelper
Introduction (2.12)
Test Cases (3.40).
Extracting IBookingRepository (7.44)
Writing the First Test (4.29)
Refactoring (7.50).
Writing the second test (1:27).
Fixing a bug (3:43).
Writing additional tests (4.44)
Project – HouseKeeperHelper (50m)
Introduction (2:07)
Refactoring for Testability (9.32)
Fixing a Design Issue (2.59)
Another Solution
Writing the First Interaction Test (7.40)
Keep Your Tests Clean (5.42)
Testing A Method Is Not Called (5.37)
Another Interaction test (7:31)
Extracting Helper Methods (8:02)
Testing Exceptions (3.34)
Most Frequently Asked Questions
When does the course begin and end?
It is a course that never ends. It is completely self-explanatory.-You can take a self-paced online course.
What length of access do I have to the course?
Imagine lifetime access! Once you enroll, you will have unlimited access to the course. for As long as you wish – on all your devices.
What happens if I’m unhappy with the course?
We wouldn’t want to make you unhappy. We will refund your entire purchase if you are not satisfied within the first 30 days.
Is this course available on Udemy/Pluralsight?
No! Pluralsight owns content exclusively. I do not have any plans at this point. for This course will be published on Udemy. If I do, it will be a lighter version than the one you see here.
Learn more https://archive.is/8tVlZ
Course Features
- Lectures 0
- Quizzes 0
- Duration 50 hours
- Skill level All levels
- Language English
- Students 400
- Assessments Yes