Wendy Breiding shows how you can take advantage of the most recent additional to the unit testing tools in Visual Studio to build more reliable apps.
Chapters
0:00 - Introduction
2:05 - Easily switch between code and Test Explorer
3:05 - Play a sound when tests finish running
4:50 - Run one or more tests easily from anywhere
6:10 - See test results in code with CodeLens
6:45 - Show Console.WriteLine results in Test Explorer summary
7:35 - Clear the results for one or more tests in Test Explorer
9:00 - Run a test until it fails or it runs a number of times
11:50 - Run a test based on different framework versions
14:35 - Improved code coverage performance and reports
19:10 - Debug tests that are failing unexpectedly
21:15 - Run tests in blame mode to isolate problematic tests
23:05 - Run tests in blame mode and collect a hang dump
23:45 - Specify a time after which a hang dump is collected
24:55 - Include platform logs when running tests
26:15 - Run tests in the background while coding using Live Unit Test
29:35 - Wrap-up
Resources
Get started with unit testing:
https://learn.microsoft.com/en-us/visualstudio/test/getting-started-with-unit-testing?view=vs-2022&tabs=dotnet%2cmstest
Use code coverage:
https://learn.microsoft.com/en-us/visualstudio/test/using-code-coverage-to-determine-how-much-code-is-being-tested?view=vs-2022&tabs=csharp