Update WireMock.Net.AwesomeAssertions to use latest version from AwesomeAssertions #694

Closed
opened 2025-12-29 15:31:10 +01:00 by adam · 6 comments
Owner

Originally created by @ArminOebb on GitHub (Jun 6, 2025).

Originally assigned to: @StefH on GitHub.

Describe the bug

It seems that the new WireMock.Net.AwesomeAssertions package is still referencing FluentAssertions instead of AwesomeAssertions!

Image

Image

Expected behavior:

WireMock.Net.AwesomeAssertions should only reference AwesomeAssertions, not FluentAssertions

Test to reproduce

  • 1 Add NuGet package WireMock.Net.AwesomeAssertions version 1.8.9 to your project
  • 2 Add AwesomeAssertions NuGet package. If you have a FluentAssertions package referenced, remove it.
  • 3 Try the following code as an example:
    public static void HaveReceivedAGetApiCall(this WireMockReceivedAssertions assertions,
    string apiBase,
    string pathAndQuery)
    => assertions.HaveReceivedACall()
    .AtUrl($"{assertions.Subject.Urls[0]}/{apiBase}/{pathAndQuery}").And
    .UsingGet();
Originally created by @ArminOebb on GitHub (Jun 6, 2025). Originally assigned to: @StefH on GitHub. ### Describe the bug It seems that the new WireMock.Net.AwesomeAssertions package is still referencing FluentAssertions instead of AwesomeAssertions! ![Image](https://github.com/user-attachments/assets/af232d43-9dca-4b37-859a-13a3e5253886) ![Image](https://github.com/user-attachments/assets/51b3a605-bae1-4eaf-899d-72e7ad467476) ### Expected behavior: WireMock.Net.AwesomeAssertions should only reference AwesomeAssertions, not FluentAssertions ### Test to reproduce - 1 Add NuGet package WireMock.Net.AwesomeAssertions version 1.8.9 to your project - 2 Add AwesomeAssertions NuGet package. If you have a FluentAssertions package referenced, remove it. - 3 Try the following code as an example: public static void HaveReceivedAGetApiCall(this WireMockReceivedAssertions assertions, string apiBase, string pathAndQuery) => assertions.HaveReceivedACall() .AtUrl($"{assertions.Subject.Urls[0]}/{apiBase}/{pathAndQuery}").And .UsingGet();
adam added the feature label 2025-12-29 15:31:10 +01:00
adam closed this issue 2025-12-29 15:31:10 +01:00
Author
Owner

@StefH commented on GitHub (Jun 6, 2025):

When you look at https://nuget.info/packages/WireMock.Net.AwesomeAssertions/1.8.9

Only AwesomeAssertions is referenced

Image

@StefH commented on GitHub (Jun 6, 2025): When you look at https://nuget.info/packages/WireMock.Net.AwesomeAssertions/1.8.9 Only AwesomeAssertions is referenced ![Image](https://github.com/user-attachments/assets/4b29f2e0-fe8d-4c07-a3f8-1c98057faac2)
Author
Owner

@ArminOebb commented on GitHub (Jun 6, 2025):

That is how it looks in the dependencies description in NuGet, yes, but in the actual assembly it looks like FluentAssertions is used.
If I use, for example, "dotPeek" to look inside the assembly "WireMock.Net.AwesomeAssertions.dll", you can see, that there is a reference to "FluentAssertions". I don't know why, but that's what the assembly says. If I compile my code it will also say the FluentAssertions is needed.
I also tried to completely remove the WireMock.Net.AwesomeAssertions NuGet package, also from the .nuget/packages directory, and installed it again, but with the same result.

@ArminOebb commented on GitHub (Jun 6, 2025): That is how it looks in the dependencies description in NuGet, yes, but in the actual assembly it looks like FluentAssertions is used. If I use, for example, "dotPeek" to look inside the assembly "WireMock.Net.AwesomeAssertions.dll", you can see, that there is a reference to "FluentAssertions". I don't know why, but that's what the assembly says. If I compile my code it will also say the FluentAssertions is needed. I also tried to completely remove the WireMock.Net.AwesomeAssertions NuGet package, also from the .nuget/packages directory, and installed it again, but with the same result.
Author
Owner

@ArminOebb commented on GitHub (Jun 6, 2025):

Okay, I figured out where it's coming from. Since Version 9.0 the dll of AwesomeAssertions is called "AwesomeAssertions.dll", but in version 8.1 it's called "FluentAssertions.dll". So that's what causes the confusion. Because I referenced AwesomeAssertions 9.0, and WireMock.Net.AwesomeAssertions uses AwesomeAssertions 8.1, where, the assembly, for some reason is called "FluentAssertions". And I didn't reference version 8.1, so that's why there is that compile error with the confusing message that "FluentAssertions.dll" is missing.
So sorry for bothering. Can we hope for a version with the 9.0 AwesomeAssertions lib? :)

@ArminOebb commented on GitHub (Jun 6, 2025): Okay, I figured out where it's coming from. Since Version 9.0 the dll of AwesomeAssertions is called "AwesomeAssertions.dll", but in version 8.1 it's called "FluentAssertions.dll". So that's what causes the confusion. Because I referenced AwesomeAssertions 9.0, and WireMock.Net.AwesomeAssertions uses AwesomeAssertions 8.1, where, the assembly, for some reason is called "FluentAssertions". And I didn't reference version 8.1, so that's why there is that compile error with the confusing message that "FluentAssertions.dll" is missing. So sorry for bothering. Can we hope for a version with the 9.0 AwesomeAssertions lib? :)
Author
Owner

@StefH commented on GitHub (Jun 6, 2025):

Using 9.0 should be possible I think.

@StefH commented on GitHub (Jun 6, 2025): Using 9.0 should be possible I think.
Author
Owner

@StefH commented on GitHub (Jun 6, 2025):

https://github.com/wiremock/WireMock.Net/pull/1309

@StefH commented on GitHub (Jun 6, 2025): https://github.com/wiremock/WireMock.Net/pull/1309
Author
Owner

@ArminOebb commented on GitHub (Jun 10, 2025):

Thank you!

@ArminOebb commented on GitHub (Jun 10, 2025): Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#694