Skip to content

Sample of unit testing in .NET Core 2 app using XUnit and FluentAssertion

Notifications You must be signed in to change notification settings

AnthonyGiretti/XUnitAndFluentAssertionInDotNetCore2Demo

Repository files navigation

XUnitAndFluentAssertionInDotNetCore2Demo

Sample of unit testing in .NET Core 2 app using XUnit and FluentAssertion

Setup XUnit in Visual Studio

Install XUnit

PM> Install-Package xunit -Version 2.3.1

Install XUnit VisualStudio Runner

This package allow to Visual Studio to discover XUnit unit tests, if you don't install it, Visual Studio won't detect them.

PM> Install-Package xunit.runner.console -Version 2.3.1

Learn more about XUnit

You can learn more about XUnit here: https://xunit.github.io/docs/getting-started-dotnet-core

Setup XUnit in Visual Studio

Install Fluent Assertion

Fluent Assertion is in release candidate for .NET Core

PM> Install-Package FluentAssertions -Version 5.0.0-rc0002

Learn more about Fluent Assertion

You can learn more about FluentAssertions here: http://fluentassertions.com/documentation.html

Enjoy :)

About

Sample of unit testing in .NET Core 2 app using XUnit and FluentAssertion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages