- Notifications
You must be signed in to change notification settings - Fork8
Fluent Assertions extensions for ASP.NET MVC
License
fluentassertions/fluentassertions.mvc
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repro contains the Fluent Assertions extensions for ASP.NET MVC. It is maintained by@kevinkuszyk.
Add the NuGet package which matches the version of MVC you are using to your test project.
Fluent Assertions for MVC Core is now in a seperate repository over atfluentassertions/fluentAssertions.aspnetcore.mvc.
Add theMVC 5 NuGet package to your unit test project:
PM> Install-Package FluentAssertions.Mvc5Add theMVC 4 NuGet package to your unit test project:
PM> Install-Package FluentAssertions.Mvc4Add theMVC 3 NuGet package to your unit test project:
PM> Install-Package FluentAssertions.Mvc3Write a unit test for your controller using one of thesupported test frameworks. For exampe with NUnit:
[Test]publicvoidIndex_Action_Returns_View(){// Arrangevarcontroller=newHomeController();// Actvarresult=controller.Index();// Assertresult.Should().BeViewResult();}
Simply clone this repro and build theFluentAssertionsMvc.sln solution.
About
Fluent Assertions extensions for ASP.NET MVC
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors7
Uh oh!
There was an error while loading.Please reload this page.