Skip to content

Commit d0188ac

Browse files
committed
Updated MVC 5 install instructions. See issue #16.
1 parent 67dcd11 commit d0188ac

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

README.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
1-
#Project Description
1+
# Project Description
22

33
FluentAssertions MVC is a set of MVC focused assertions and helper extensions to the excellent [FluentAssertions][fa-home] library.
44

55
## Installation
66

7-
For MVC 4 or 5 projects, add the [MVC 4][nuget-mvc4] NuGet package to your unit test project:
7+
Follow the instructions for the version of MVC you are using. For [MVC 3](#MVC3) and [4](#MVC4) just add the NuGet package. [MVC 5](#MVC5) also requires a binding redirect.
8+
9+
<a name="MVC5"></a>
10+
### MVC 5
11+
12+
Add the [MVC 4][nuget-mvc4] NuGet package to your unit test project:
13+
14+
````
15+
PM> Install-Package FluentAssertions.Mvc4
16+
````
17+
18+
And add the following binding redirect to you test project's ````app.config```` file:
19+
20+
```` xml
21+
<dependentAssembly>
22+
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
23+
<bindingRedirect oldVersion="1.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
24+
</dependentAssembly>
25+
````
26+
27+
<a name="MVC4"></a>
28+
### MVC 4
29+
30+
Add the [MVC 4][nuget-mvc4] NuGet package to your unit test project:
831

932
````
1033
PM> Install-Package FluentAssertions.Mvc4
1134
````
12-
There is also an [MVC 3][nuget-mvc3] package:
35+
36+
<a name="MVC3"></a>
37+
### MVC 3
38+
39+
Add the [MVC 3][nuget-mvc3] NuGet package to your unit test project:
40+
1341
````
1442
PM> Install-Package FluentAssertions.Mvc3
1543
````

0 commit comments

Comments
 (0)