Upgrade to latest FluentAssertions #359

Closed
opened 2025-12-29 15:21:43 +01:00 by adam · 1 comment
Owner

Originally created by @phelm1-landolakes on GitHub (Sep 27, 2021).

Originally assigned to: @StefH on GitHub.

When test project references FluentAssertions 6.1.0

this.mockHttpServer
    .Should()
    .HaveReceivedACall()
    .WithHeader("z", "x");

Throws System.MissingMethodException

Message:
 System.MissingMethodException : Method not found: 'Void FluentAssertions.Primitives.ReferenceTypeAssertions`2..ctor()'.

Stack Trace:
    WireMockReceivedAssertions.ctor(IWireMockServer server)
    WireMockExtensions.Should(IWireMockServer instance)




Originally created by @phelm1-landolakes on GitHub (Sep 27, 2021). Originally assigned to: @StefH on GitHub. When test project references FluentAssertions 6.1.0 ``` c# this.mockHttpServer .Should() .HaveReceivedACall() .WithHeader("z", "x"); ``` Throws System.MissingMethodException ``` Message: System.MissingMethodException : Method not found: 'Void FluentAssertions.Primitives.ReferenceTypeAssertions`2..ctor()'. Stack Trace: WireMockReceivedAssertions.ctor(IWireMockServer server) WireMockExtensions.Should(IWireMockServer instance)
adam added the bug label 2025-12-29 15:21:43 +01:00
adam closed this issue 2025-12-29 15:21:43 +01:00
Author
Owner

@StefH commented on GitHub (Sep 27, 2021):

@phelm1-landolakes
A new version will be released, please test it.

@StefH commented on GitHub (Sep 27, 2021): @phelm1-landolakes A new version will be released, please test it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#359