Skip to content

Commit 4ec1c6e

Browse files
author
CaseyBurns
committed
Routing and ViewResult assions created
1 parent a5b2c14 commit 4ec1c6e

33 files changed

+1300
-146
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using NUnit.Framework;
3+
using FluentAssertions.Mvc.Tests.Fakes;
4+
using System.Web.Mvc;
5+
using FluentAssertions.Mvc3;
6+
7+
namespace FluentAssertions.Mvc3.Tests
8+
{
9+
[TestFixture]
10+
public class ActionResultAssertions_Tests
11+
{
12+
}
13+
}

src/FluentAssertions.Mvc.Tests/ControllerAssertions_Tests.cs

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/FluentAssertions.Mvc.Tests/Fakes/FakeController.cs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@ namespace FluentAssertions.Mvc.Tests.Fakes
55
{
66
public class FakeController : Controller
77
{
8-
private ActionResult _indexResult;
9-
10-
public FakeController (ActionResult indexResult)
11-
{
12-
_indexResult = indexResult;
13-
}
14-
8+
public ActionResult IndexReturn { get; set; }
9+
1510
public ActionResult Index ()
1611
{
17-
return _indexResult;
12+
return IndexReturn;
1813
}
1914
}
2015
}

src/FluentAssertions.Mvc.Tests/FluentAssertions.Mvc.Tests.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -47,12 +47,11 @@
4747
<ItemGroup>
4848
<Compile Include="AssemblyInfo.cs" />
4949
<Compile Include="Fakes\FakeController.cs" />
50-
<Compile Include="ControllerAssertions_Tests.cs" />
50+
<Compile Include="ActionResultAssertions_Tests.cs" />
51+
<Compile Include="ViewResultAssertions_Tests.cs" />
5152
</ItemGroup>
5253
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
53-
<ItemGroup>
54-
<Folder Include="Fakes\" />
55-
</ItemGroup>
54+
<ItemGroup />
5655
<ItemGroup>
5756
<ProjectReference Include="..\FluentAssertions.Mvc3\FluentAssertions.Mvc3.csproj">
5857
<Project>{53589F79-0908-409A-8366-3E18DC637600}</Project>

src/FluentAssertions.Mvc.Tests/MyClass.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)