In this article, we will demonstrate getting started with xUnit.net for UWP, showing you how to write and run your first set of unit tests.
File -> New
Project and create a Blank UWP project:
xunit.runner.devices
package. If you want unit tests in this project, also add xunit
:
App.xaml
and App.xaml.cs
with the following (using your namespace in x:Class
):
MainPage.xaml
and MainPage.xaml.cs
:
App.xaml.cs
to include the assembly containing your tests
xunit.runner.json
file as Content
to specify runner configuration