RouteDataAssertions is not compatible with the latest version of FluentAssertions
rikrak opened this issue · 3 comments
Hi,
My project uses nuget package 0.5.0.0 of FluentAssertions.MVC5. I've just upgraded to v3.3.0 of FluentAssertions and I notice there are some breaking changes in Fluent Assertions.
When running a test that uses the RouteDataAssertions:
routeData.Should()
.HaveController("Customer")
.HaveAction("Edit")
.HaveValue("Id", 123);
I receive the following MissingMethodException:
System.MissingMethodException: Method not found: 'Boolean FluentAssertions.Execution.AssertionScope.FailWith(System.String, System.Object[])'.
Looks like Fluent Assertions has changed the signature to this method to be:
public Continuation FailWith(string message, params object[] args)
(ref: dennisdoomen/fluentassertions@2cf13d4)
Rik
I just pushed version 0.6.0-beta1 to Nuget which is built against Fluent Assertions v3.3.0. I think that should fix your issue. Can you try that version and confirm? Thanks!
Hi @kevinkuszyk
The beta package appears to have fixed the issue.
Thanks!
In what sort of timeframe will this be pushed to live?
Rik
Version 0.6.0 is up on NuGet now.