<#471 NUnit Framework Exception> Issue created by ...
# pact-net
g
#471 NUnit Framework Exception Issue created by volkovivn Hi team, When try to use PactNet with NUnit, an exception is thrown. I'm not quite sure if it is a problem with NUnit or PactNet. I wasn't able to find the solution by myself. Could anyone help me? It is pretty easy to reproduce: • Replace the framework from XUnit to NUnit. (for reference you test it on
Consumer.Tests.csproj
) •
Run all tests
• Only first test in class will pass, exception is thrown for rest 😞 Exception:
Copy code
PactNet.Exceptions.PactFailureException : Unable to perform the given action. The interop call indicated failure
   at PactNet.Drivers.InteropActionExtensions.CheckInteropSuccess(Boolean success) in D:\Repos\pact-net\src\PactNet\Drivers\InteropActionExtensions.cs:line 19
   at PactNet.Drivers.HttpInteractionDriver.GivenWithParam(String description, String name, String value) in D:\Repos\pact-net\src\PactNet\Drivers\HttpInteractionDriver.cs:line 41
   at PactNet.RequestBuilder.Given(String providerState, IDictionary`2 parameters) in D:\Repos\pact-net\src\PactNet\RequestBuilder.cs:line 424
   at PactNet.RequestBuilder.PactNet.IRequestBuilderV4.Given(String providerState, IDictionary`2 parameters) in D:\Repos\pact-net\src\PactNet\RequestBuilder.cs:line 291
   at Consumer.Tests.OrdersClientTests.GetOrderAsync_WhenCalled_ReturnsOrder() in D:\Repos\pact-net\samples\OrdersApi\Consumer.Tests\OrdersClientTests.cs:line 46
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.GetResult()
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated(ContextCallback callback, Object state)
   at NUnit.Framework.Internal.ContextUtils.DoIsolated[T](Func`1 func)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.PerformWork()



-----

One or more child tests had errors
  Exception doesn't have a stacktrace
pact-foundation/pact-net