Skip to content

Commit 94f430e

Browse files
rikrakkevinkuszyk
authored andcommitted
Update FluentAssertions library to v5.0.0
1 parent 0627869 commit 94f430e

22 files changed

+101
-106
lines changed

samples/FluentAssertions.Mvc3.Samples/FluentAssertions.Mvc3.Samples.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@
5555
<Reference Include="EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
5656
<HintPath>..\..\packages\EntityFramework.4.1.10331.0\lib\EntityFramework.dll</HintPath>
5757
</Reference>
58-
<Reference Include="FluentAssertions, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
59-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.dll</HintPath>
60-
</Reference>
61-
<Reference Include="FluentAssertions.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
62-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.Core.dll</HintPath>
58+
<Reference Include="FluentAssertions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
59+
<HintPath>..\..\packages\FluentAssertions.5.0.0\lib\net45\FluentAssertions.dll</HintPath>
6360
</Reference>
6461
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6562
<HintPath>..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
@@ -73,6 +70,9 @@
7370
<Reference Include="System" />
7471
<Reference Include="System.Data" />
7572
<Reference Include="System.Drawing" />
73+
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
74+
<HintPath>..\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
75+
</Reference>
7676
<Reference Include="System.Web.DynamicData" />
7777
<Reference Include="System.Web.Entity" />
7878
<Reference Include="System.Web.ApplicationServices" />

samples/FluentAssertions.Mvc3.Samples/packages.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="EntityFramework" version="4.1.10331.0" targetFramework="net45" />
4-
<package id="FluentAssertions" version="3.3.0" targetFramework="net45" />
4+
<package id="FluentAssertions" version="5.0.0" targetFramework="net45" />
55
<package id="jQuery" version="1.5.1" />
66
<package id="jQuery.UI.Combined" version="1.8.11" />
77
<package id="jQuery.Validation" version="1.8.0" />
@@ -12,4 +12,5 @@
1212
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
1313
<package id="Modernizr" version="1.7" />
1414
<package id="NUnit" version="3.2.1" targetFramework="net45" />
15+
<package id="System.ValueTuple" version="4.3.0" targetFramework="net45" />
1516
</packages>

src/FluentAssertions.Mvc.Shared/RedirectToRouteAssertions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public RedirectToRouteAssertions WithRouteName(string expectedRouteName, string
8181
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
8282
/// </param>
8383
/// <param name="reasonArgs">
84-
/// Zero or more objects to format using the placeholders in <see cref="reason" />.
84+
/// Zero or more objects to format using the placeholders in <see paramref="reason" />.
8585
/// </param>
8686
public RedirectToRouteAssertions WithRouteValue(string key, object expectedValue, string reason = "", params object[] reasonArgs)
8787
{
@@ -98,7 +98,7 @@ public RedirectToRouteAssertions WithRouteValue(string key, object expectedValue
9898
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
9999
/// </param>
100100
/// <param name="reasonArgs">
101-
/// Zero or more objects to format using the placeholders in <see cref="reason" />.
101+
/// Zero or more objects to format using the placeholders in <see paramref="reason" />.
102102
/// </param>
103103
public RedirectToRouteAssertions WithController(string expectedControllerName, string reason = "", params object[] reasonArgs)
104104
{
@@ -132,7 +132,7 @@ public RedirectToRouteAssertions WithAction(string expectedAction, string reason
132132
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
133133
/// </param>
134134
/// <param name="reasonArgs">
135-
/// Zero or more objects to format using the placeholders in <see cref="reason" />.
135+
/// Zero or more objects to format using the placeholders in <see paramref="reason" />.
136136
/// </param>
137137
public RedirectToRouteAssertions WithArea(string expectedArea, string reason = "", params object[] reasonArgs)
138138
{
@@ -143,7 +143,7 @@ public RedirectToRouteAssertions WithArea(string expectedArea, string reason = "
143143
/// <summary>
144144
/// Returns the type of the subject the assertion applies on.
145145
/// </summary>
146-
protected override string Context
146+
protected override string Identifier
147147
{
148148
get { return "RedirectToRouteResult"; }
149149
}

src/FluentAssertions.Mvc3/FluentAssertions.Mvc3.csproj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,17 @@
4747
<Prefer32Bit>false</Prefer32Bit>
4848
</PropertyGroup>
4949
<ItemGroup>
50-
<Reference Include="FluentAssertions, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
51-
<SpecificVersion>False</SpecificVersion>
52-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.dll</HintPath>
53-
</Reference>
54-
<Reference Include="FluentAssertions.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
55-
<SpecificVersion>False</SpecificVersion>
56-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.Core.dll</HintPath>
50+
<Reference Include="FluentAssertions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
51+
<HintPath>..\..\packages\FluentAssertions.5.0.0\lib\net45\FluentAssertions.dll</HintPath>
5752
</Reference>
5853
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5954
<Private>True</Private>
6055
<HintPath>..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
6156
</Reference>
6257
<Reference Include="System" />
58+
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
59+
<HintPath>..\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
60+
</Reference>
6361
<Reference Include="System.Web.Helpers">
6462
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.1.0.20105.408\lib\net40\System.Web.Helpers.dll</HintPath>
6563
<Private>True</Private>
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FluentAssertions" version="3.3.0" targetFramework="net45" />
4-
<package id="Microsoft.AspNet.Mvc" version="3.0.20105.1" targetFramework="net45" allowedVersions="(,4)" />
5-
<package id="Microsoft.AspNet.Razor" version="1.0.20105.408" targetFramework="net45" allowedVersions="(,2)" />
6-
<package id="Microsoft.AspNet.WebPages" version="1.0.20105.408" targetFramework="net45" allowedVersions="(,2)" />
7-
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
3+
<package id="FluentAssertions" version="5.0.0" targetFramework="net45" />
4+
<package id="Microsoft.AspNet.Mvc" version="3.0.20105.1" targetFramework="net45" allowedVersions="(,4)" />
5+
<package id="Microsoft.AspNet.Razor" version="1.0.20105.408" targetFramework="net45" allowedVersions="(,2)" />
6+
<package id="Microsoft.AspNet.WebPages" version="1.0.20105.408" targetFramework="net45" allowedVersions="(,2)" />
7+
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
8+
<package id="System.ValueTuple" version="4.3.0" targetFramework="net45" />
89
</packages>

src/FluentAssertions.Mvc4/FluentAssertions.Mvc4.csproj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,18 @@
3737
<Prefer32Bit>false</Prefer32Bit>
3838
</PropertyGroup>
3939
<ItemGroup>
40-
<Reference Include="FluentAssertions, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
41-
<SpecificVersion>False</SpecificVersion>
42-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.dll</HintPath>
43-
</Reference>
44-
<Reference Include="FluentAssertions.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
45-
<SpecificVersion>False</SpecificVersion>
46-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.Core.dll</HintPath>
40+
<Reference Include="FluentAssertions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
41+
<HintPath>..\..\packages\FluentAssertions.5.0.0\lib\net45\FluentAssertions.dll</HintPath>
4742
</Reference>
4843
<Reference Include="Microsoft.Web.Infrastructure">
4944
<HintPath>..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
5045
<Private>True</Private>
5146
</Reference>
5247
<Reference Include="System" />
5348
<Reference Include="System.Core" />
49+
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
50+
<HintPath>..\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
51+
</Reference>
5452
<Reference Include="System.Web" />
5553
<Reference Include="System.Web.Helpers">
5654
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.2.0.20710.0\lib\net40\System.Web.Helpers.dll</HintPath>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FluentAssertions" version="3.3.0" targetFramework="net45" />
3+
<package id="FluentAssertions" version="5.0.0" targetFramework="net45" />
44
<package id="Microsoft.AspNet.Mvc" version="4.0.30506.0" targetFramework="net45" />
55
<package id="Microsoft.AspNet.Razor" version="2.0.20710.0" targetFramework="net45" />
66
<package id="Microsoft.AspNet.WebPages" version="2.0.20710.0" targetFramework="net45" />
77
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
8+
<package id="System.ValueTuple" version="4.3.0" targetFramework="net45" />
89
</packages>

src/FluentAssertions.Mvc5/FluentAssertions.Mvc5.csproj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,18 @@
3333
<DocumentationFile>..\..\bin\Release\FluentAssertions.Mvc5.xml</DocumentationFile>
3434
</PropertyGroup>
3535
<ItemGroup>
36-
<Reference Include="FluentAssertions, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
37-
<SpecificVersion>False</SpecificVersion>
38-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.dll</HintPath>
39-
</Reference>
40-
<Reference Include="FluentAssertions.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
41-
<SpecificVersion>False</SpecificVersion>
42-
<HintPath>..\..\packages\FluentAssertions.3.3.0\lib\net45\FluentAssertions.Core.dll</HintPath>
36+
<Reference Include="FluentAssertions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
37+
<HintPath>..\..\packages\FluentAssertions.5.0.0\lib\net45\FluentAssertions.dll</HintPath>
4338
</Reference>
4439
<Reference Include="Microsoft.Web.Infrastructure">
4540
<HintPath>..\..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath>
4641
<Private>True</Private>
4742
</Reference>
4843
<Reference Include="System" />
4944
<Reference Include="System.Core" />
45+
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
46+
<HintPath>..\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
47+
</Reference>
5048
<Reference Include="System.Web" />
5149
<Reference Include="System.Web.Helpers">
5250
<HintPath>..\..\packages\Microsoft.AspNet.WebPages.3.0.0\lib\net45\System.Web.Helpers.dll</HintPath>
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="FluentAssertions" version="3.3.0" targetFramework="net45" />
3+
<package id="FluentAssertions" version="5.0.0" targetFramework="net45" />
44
<package id="Microsoft.AspNet.Mvc" version="5.0.0" targetFramework="net45" />
55
<package id="Microsoft.AspNet.Razor" version="3.0.0" targetFramework="net45" />
66
<package id="Microsoft.AspNet.WebPages" version="3.0.0" targetFramework="net45" />
77
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
8+
<package id="System.ValueTuple" version="4.3.0" targetFramework="net45" />
89
</packages>

tests/FluentAssertions.Mvc.Tests.Shared/ActionResultAssertions_Tests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void BeContent_GivenNotContent_ShouldFail()
2121
{
2222
ActionResult result = new ViewResult();
2323
Action a = () => result.Should().BeContentResult();
24-
a.ShouldThrow<Exception>()
24+
a.Should().Throw<Exception>()
2525
.WithMessage("Expected ActionResult to be \"ContentResult\", but found \"ViewResult\"");
2626
}
2727

@@ -37,7 +37,7 @@ public void BeEmpty_GivenNotEmpty_ShouldPass()
3737
{
3838
ActionResult result = new ViewResult();
3939
Action a = () => result.Should().BeEmptyResult();
40-
a.ShouldThrow<Exception>()
40+
a.Should().Throw<Exception>()
4141
.WithMessage("Expected ActionResult to be \"EmptyResult\", but found \"ViewResult\"");
4242
}
4343

@@ -53,7 +53,7 @@ public void BeRedirectToRoute_GivenNotRedirectToRoute_ShouldFail()
5353
{
5454
ActionResult result = new ViewResult();
5555
Action a = () => result.Should().BeRedirectToRouteResult();
56-
a.ShouldThrow<Exception>()
56+
a.Should().Throw<Exception>()
5757
.WithMessage("Expected ActionResult to be \"RedirectToRouteResult\", but found \"ViewResult\"");
5858
}
5959

@@ -69,7 +69,7 @@ public void BeRedirect_GivenNotRedirect_ShouldFail()
6969
{
7070
ActionResult result = new ViewResult();
7171
Action a = () => result.Should().BeRedirectResult();
72-
a.ShouldThrow<Exception>()
72+
a.Should().Throw<Exception>()
7373
.WithMessage("Expected ActionResult to be \"RedirectResult\", but found \"ViewResult\"");
7474
}
7575

@@ -85,7 +85,7 @@ public void BePartialView_GivenNotPartial_ShouldFail()
8585
{
8686
ActionResult result = new RedirectResult("/");
8787
Action a = () => result.Should().BePartialViewResult();
88-
a.ShouldThrow<Exception>()
88+
a.Should().Throw<Exception>()
8989
.WithMessage("Expected ActionResult to be \"PartialViewResult\", but found \"RedirectResult\"");
9090
}
9191

@@ -101,7 +101,7 @@ public void BeView_GivenNotView_ShouldFail()
101101
{
102102
ActionResult result = new RedirectResult("/");
103103
Action a = () => result.Should().BeViewResult();
104-
a.ShouldThrow<Exception>()
104+
a.Should().Throw<Exception>()
105105
.WithMessage("Expected ActionResult to be \"ViewResult\", but found \"RedirectResult\"");
106106
}
107107
}

0 commit comments

Comments
 (0)