fluentassertions.mvc icon indicating copy to clipboard operation
fluentassertions.mvc copied to clipboard

Fluent Assertions extensions for ASP.NET MVC

Results 9 fluentassertions.mvc issues
Sort by recently updated
recently updated
newest added

Updating my project to the latest FluentAssertions library causes runtime errors: System.MissingMethodException: Method not found: 'Void FluentAssertions.Primitives.ReferenceTypeAssertions`2.set_Subject(!0)'. at FluentAssertions.Mvc.ActionResultAssertions..ctor(ActionResult subject) at FluentAssertions.Mvc.AssertionsExtensions.Should(ActionResult actual) This is due to v6 having some...

This should help with #40 The issue might be that the subject under test might have a null value in the View data which causes the NullReferenceException. Caveats: - I...

This code: ```csharp const string pageName = "pageName"; _sut.GetByPageName(pageName) .Should() .BeViewResult() .WithViewData("PageName", pageName) .WithViewData("Roles", _roles) // this call fails! .WithViewData("FieldName", null); ``` causes: ``` System.NullReferenceException HResult=0x80004003 Message=Object reference not set...

The tests run fine locally with ReSharper, so I think there is an issue with the NUnit runner on the build server. I have muted the tests for now until...

help wanted

Syntax would look like this: ``` C# var result = controller.Action(model); result.Should().BeRedirectToActionResult(x => x.AnotherMethod()); ```

help wanted

``` c# controller.Should().HaveFilters ```

enhancement
Proposed
help wanted