Choosing a unit test framework
WinUI 3 does not currently support any of the .NET unit testing frameworks. However, following the MVVM pattern will make it simple to add unit tests to your application when support is added to WinUI.
There are three popular unit test frameworks for .NET developers today, as follows:
- MSTest: This framework was created by Microsoft and has been included with Visual Studio for many years. Documentation on using MSTest with C# can be found here: https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-mstest.
- NUnit: This open source framework was the first of the three mentioned here to be created for .NET developers. It was modeled after the JUnit Java unit testing framework. Learn more about the NUnit framework here: https://nunit.org/.
- xUnit: xUnit has been quickly growing in popularity since its introduction. The xUnit team's aim was to create a framework that is modern and extensible and that aligns with the features...