Closed elijah-ezaga closed 1 month ago
Can you please give the complete test project?
Hi Stef. Thanks for offering to help.
While I was preparing the project to attach here, I found the issue and was able to fix it. It was connected with libraries in the project depending on 2 different versions of System.Memory
leading to
System.IO.FileNotFoundException: Could not load file or assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies.
I got it fixed by using binding redirect in app.config
as the project type was a non-cross-platform .NET Framework test project type.
Later I re-created the project to be a cross-platform NUnit test project and there was no longer need for the binding redirect.
Hi Wiremock.Net Team. I am new to using Wiremock.NET (v1.5.53, the latest) and trying to get it to work with a simple setup but its server does not deliver any response. For context, I have a simple C# Unit test file in a project (.NET Framework 461) with the following contents:
When I run the test, I get the error:
Also If I add a line like
await Task.Delay(TimeSpan.FromMinutes(5))
to pause execution and I make requests from Postman for admin URLs like__admin/mappings
, it waits endlessly until the time exceeds and the test runs out and it doesn't get a response. However, I can confirm from a Windows command prompt, runningnetstat -ab
, that the port is opened and the test process is listening for requests.Any clues what might be wrong ?