2code ^ !2code [S2023E02] Testing with MSTest, NUnit & xUnit

Опубликовано: 18 Март 2026
на канале: FlashOWare
135
2

The 2nd episode is all about unit #testing #csharp:
You will learn how to author tests in #dotnet with the three major test frameworks (MSTest, NUnit and xUnit.net) and run these on demand/on save from the CLI.

Hosted by   / merelyeva   and   / 0x_f0  .
Open Source: https://github.com/FlashOWare/FlashOW...

Hyperlinks:
.NET Annotated Monthly | March 2023: https://blog.jetbrains.com/dotnet/202...
Sites of .NET: https://sitesof.net/
.NET Source Browser: https://source.dot.net/
Roslyn Source Browser: https://sourceroslyn.io/
WomenOfDotNet: https://www.womenofdot.net/
Unit testing best practices with .NET Core and .NET Standard: https://learn.microsoft.com/dotnet/co...
dotnet test command: https://learn.microsoft.com/dotnet/co...
dotnet watch command: https://learn.microsoft.com/dotnet/co...
MSTest: https://github.com/microsoft/testfx
How to: Create a data-driven unit test (MSTest): https://learn.microsoft.com/visualstu...
NUnit: https://github.com/nunit
TestCaseSource (NUnit): https://docs.nunit.org/articles/nunit...
FixtureLifeCycle (NUnit): https://docs.nunit.org/articles/nunit...
xUnit: https://github.com/xunit
Creating strongly typed xUnit theory test data with TheoryData: https://andrewlock.net/creating-stron...
NUnit, MSTest and xUnit - What is similar? What is different? - .NET Meetup Vienna March 2020:    • NUnit, MSTest and xUnit - What is similar?...  
Attributes (C#): https://learn.microsoft.com/dotnet/cs...
Meetup: Tech Excellence: https://www.meetup.com/techexcellence/
Meetup: dotnetsheff: https://www.meetup.com/dotnetsheff/
Meetup: MK.NET - Milton Keynes .NET Meetup Group: https://www..com/milton-keynes-net-meetup-group/
Global using directives (What's new in C# 10): https://learn.microsoft.com/dotnet/cs...
Global using directives (Announcing .NET 6): https://devblogs.microsoft.com/dotnet...

Video Chapters:
0:00:00 Countdown
0:04:48 Hello, World!
0:05:41 NewsFlash
0:08:40 Testing with MSTest, NUnit & xUnit
0:09:57 S2023E01 roundup
0:10:18 Create test projects
0:11:40 Create project under test
0:12:33 Add projects to solution
0:13:58 Getting ready
0:16:31 Unit testing & TDD
0:22:45 German & Viennese
0:24:10 TDD with MSTest
1:34:47 NUnit (diff)
1:46:40 xUnit.net (diff)
1:58:49 Data-driven test (MSTest)
2:02:20 Data-driven test (NUnit)
2:04:33 Data-driven test (xUnit.net)
2:06:19 Lifetime of test class instances
2:11:17 Test framework preference?
2:13:18 C# Attributes
2:13:57 Assertion library
2:14:42 Meetups
2:17:13 Coming up...
2:18:28 We'll be back