1
1
# Project Description
2
- [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/wlt5yp8m66y9rw4f ?svg=true )] ( https://ci.appveyor.com/project/kevinkuszyk/fluentassertions-mvc )
2
+ [ ![ Build status] ( https://ci.appveyor.com/api/projects/status/rt5vutjvy2no75cv ?svg=true )] ( https://ci.appveyor.com/project/kevinkuszyk/fluentassertions-aspnetcore -mvc )
3
3
4
- Fluent Assertions for MVC is a set of MVC focused assertions and helper extensions to the excellent [ Fluent Assertions] [ fa-home ] library.
4
+ Fluent Assertions for MVC Core is a set of MVC Core focused assertions and helper extensions to the excellent [ Fluent Assertions] [ fa-home ] library.
5
5
6
6
## Installation
7
7
8
8
Add the NuGet package which matches the version of MVC you are using to your test project.
9
9
10
- ### MVC Core
11
-
12
- Add the [ MVC Core] [ nuget-mvc-core ] NuGet package to your unit test project:
10
+ Add the [ Fluent Assertions for MVC Core] [ nuget-mvc-core ] NuGet package to your unit test project:
13
11
14
12
````
15
13
PM> FluentAssertions.AspNetCore.Mvc -Pre
16
14
````
17
15
18
- ### MVC 5
19
-
20
- Add the [ MVC 5] [ nuget-mvc5 ] NuGet package to your unit test project:
21
-
22
- ````
23
- PM> Install-Package FluentAssertions.Mvc5
24
- ````
25
-
26
- ### MVC 4
27
-
28
- Add the [ MVC 4] [ nuget-mvc4 ] NuGet package to your unit test project:
29
-
30
- ````
31
- PM> Install-Package FluentAssertions.Mvc4
32
- ````
33
-
34
- ### MVC 3
35
-
36
- Add the [ MVC 3] [ nuget-mvc3 ] NuGet package to your unit test project:
37
-
38
- ````
39
- PM> Install-Package FluentAssertions.Mvc3
40
- ````
41
-
42
16
## Getting Started
43
17
44
18
Write a unit test for your controller using one of the [ supported test frameworks] [ fa-frameworks ] . For exampe with NUnit:
@@ -61,7 +35,4 @@ public void Index_Action_Returns_View()
61
35
62
36
[ fa-home ] : https://github.com/dennisdoomen/FluentAssertions
63
37
[ fa-frameworks ] : https://github.com/dennisdoomen/fluentassertions/wiki/Documentation#supported-test-frameworks
64
- [ nuget-mvc3 ] : https://www.nuget.org/packages/FluentAssertions.Mvc3
65
- [ nuget-mvc4 ] : https://www.nuget.org/packages/FluentAssertions.Mvc4
66
- [ nuget-mvc5 ] : https://www.nuget.org/packages/FluentAssertions.Mvc5
67
38
[ nuget-mvc-core ] : https://www.nuget.org/packages/FluentAssertions.AspNetCore.Mvc
0 commit comments