Skip to content

Commit

Permalink
Removed commented out code and unnecessary compiler directives
Browse files Browse the repository at this point in the history
  • Loading branch information
rikrak committed Jun 21, 2018
1 parent 7505d88 commit 80333a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
7 changes: 0 additions & 7 deletions src/FluentAssertions.Mvc.Shared/JsonResultAssertions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
using System.Text;
using FluentAssertions.Execution;
using FluentAssertions.Primitives;
#if NETSTANDARD1_6
using Microsoft.AspNetCore.Mvc;
#else
using System.Web.Mvc;
#endif

namespace FluentAssertions.Mvc
{
Expand Down Expand Up @@ -71,7 +67,6 @@ public JsonResultAssertions WithData(Func<object, bool> dataCondition, string re
return this;
}

#if !NETSTANDARD1_6
/// <summary>
/// Asserts that the content encoding is the expected content encoding type.
/// </summary>
Expand All @@ -94,7 +89,5 @@ public JsonResultAssertions WithContentEncoding(Encoding expectedEncoding, strin

return this;
}
#endif

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
using System.Linq;
using System.Text;
using NUnit.Framework;
#if NETCOREAPP1_0
using Microsoft.AspNetCore.Mvc;
#else
using System.Web.Mvc;
#endif

namespace FluentAssertions.Mvc.Tests
{
Expand Down Expand Up @@ -121,34 +117,8 @@ public void WithDataPredicate_ShouldFail()
act.Should().Throw<Exception>().WithMessage(expectedMessage);
}

//[Test]
//public void WithData_DataIsDifferentObjectOfSameValue()
//{
// var actualData = new ObjectWithEquality("hello world");
// var expectedData = new ObjectWithEquality("hello world");

// ActionResult result = new JsonResult { Data = actualData };

// result.Should().BeJsonResult().WithData(expectedData);
//}

//[Test]
//public void WithData_DataIsDifferentObjectOfDifferentValue()
//{
// var actualData = new ObjectWithEquality("hello world");
// var expectedData = new ObjectWithEquality("goodbye cruel world");
// var expectedMessage = string.Format(FailureMessages.CommonFailMessage, "JsonResult.Data", expectedData, actualData);

// ActionResult result = new JsonResult { Data = actualData };

// System.Action act = () => result.Should().BeJsonResult().WithData(expectedData);

// act.Should().Throw<Exception>().WithMessage(expectedMessage);
//}

#endregion

#if !NETCOREAPP1_0
[Test]
public void WithContentEncoding_GivenExpected_ShouldPass()
{
Expand All @@ -169,7 +139,6 @@ public void WithContentEncoding_GivenUnexpected_ShouldFail()
a.Should().Throw<Exception>()
.WithMessage(failureMessage);
}
#endif

private class ObjectWithEquality : IEquatable<ObjectWithEquality>
{
Expand Down

0 comments on commit 80333a9

Please sign in to comment.