Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fluent Assertions extensions for ASP.NET MVC

License

NotificationsYou must be signed in to change notification settings

fluentassertions/fluentassertions.mvc

Repository files navigation

Build status

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

Installation

Add the NuGet package which matches the version of MVC you are using to your test project.

MVC Core

Fluent Assertions for MVC Core is now in a seperate repository over atfluentassertions/fluentAssertions.aspnetcore.mvc.

MVC 5

Add theMVC 5 NuGet package to your unit test project:

PM> Install-Package FluentAssertions.Mvc5

MVC 4

Add theMVC 4 NuGet package to your unit test project:

PM> Install-Package FluentAssertions.Mvc4

MVC 3

Add theMVC 3 NuGet package to your unit test project:

PM> Install-Package FluentAssertions.Mvc3

Getting Started

Write 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();}

Building

Simply clone this repro and build theFluentAssertionsMvc.sln solution.

About

Fluent Assertions extensions for ASP.NET MVC

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp