Sample of unit testing in .NET Core 2 app using XUnit and FluentAssertion
PM> Install-Package xunit -Version 2.3.1
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
You can learn more about XUnit here: https://xunit.github.io/docs/getting-started-dotnet-core
Fluent Assertion is in release candidate for .NET Core
PM> Install-Package FluentAssertions -Version 5.0.0-rc0002
You can learn more about FluentAssertions here: http://fluentassertions.com/documentation.html
Enjoy :)