You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,38 @@
1
1
#Project Description
2
2
3
-
FluentAssertions MVC is a set of MVC focused assertions and helper extensions to the excellent [FluentAssertions](https://github.com/dennisdoomen/FluentAssertions) library.
3
+
FluentAssertions MVC is a set of MVC focused assertions and helper extensions to the excellent [FluentAssertions][fa-home] library.
4
+
5
+
## Installation
6
+
7
+
Add the [MVC 3][nuget-mvc3] or [MVC 4][nuget-mvc4] NuGet package to your unit test project:
8
+
9
+
````
10
+
PM> Install-Package FluentAssertions.Mvc3
11
+
````
12
+
or
13
+
````
14
+
PM> Install-Package FluentAssertions.Mvc4
15
+
````
16
+
17
+
## Getting Started
18
+
19
+
Write a unit test for your controller using one of the [supported test frameworks][fa-frameworks]. For exampe with NUnit:
20
+
21
+
````C#
22
+
[Test]
23
+
publicvoidIndex_Action_Returns_View()
24
+
{
25
+
// Arrange
26
+
varcontroller=newHomeController();
27
+
28
+
// Act
29
+
varresult=controller.Index();
30
+
31
+
// Assert
32
+
result.Should().BeViewResult();
33
+
}
34
+
35
+
````
4
36
5
37
## Continuous Integration
6
38
@@ -16,3 +48,8 @@ The [build][1] is generously hosted and run on the [CodeBetter TeamCity][2] infr
0 commit comments