Skip to content
Switch branches/tags

Fluent Assertions for ASP.NET Core MVC

Build status

This repo contains the Fluent Assertions extensions for ASP.NET Core MVC. It is maintained by @kevinkuszyk.


Add the NuGet package to your test project.

Add the Fluent Assertions for MVC Core NuGet package to your unit test project:

PM> Install-Package FluentAssertions.AspNetCore.Mvc

Getting Started

Write a unit test for your controller using one of the supported test frameworks. For example with NUnit:

public void Index_Action_Returns_View()
    // Arrange
    var controller = new HomeController();

    // Act
    var result = controller.Index();

    // Assert


Simply clone this repo and build the FluentAssertions.AspNetCore.Mvc.sln solution.