You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a .net 8.0 test project. Within that project, I included the latest Cocona package 2.2.0.
I then added the following test:
publicclassUnitTest1{privatereadonlyITestOutputHelperoutput;publicUnitTest1(ITestOutputHelperoutput){this.output=output;}[Fact]publicvoidRunCoconaApp(){output.WriteLine("Attempting to call CoconaApp.Run");CoconaApp.Run(()=>{output.WriteLine("Hello World");});}}
Upon running this test, the only output seen is the initial line "Attempting to call CoconaApp.Run".
Breakpointing into this test, I can hit the call to CoconaApp.Run, but the code within the lambda expression is never executed.
Expected behavior: CoconaApp.Run should work and execute the lambda expression when tested using xunit/nunit
Actual behavior: CoconaApp.Run never executes the lambda expression when tested using xunit/nunit.
Had anyone successfully ran Cocona as part of their integration tests?
The text was updated successfully, but these errors were encountered:
This is something that is also pain for me, is there anybody who could share his reflections about what might be the problem here? My best guess for a quick look is that it runs with tests host and cocona might never be able to introduce itself properly to already configured host?
I created a .net 8.0 test project. Within that project, I included the latest Cocona package 2.2.0.
I then added the following test:
Upon running this test, the only output seen is the initial line "Attempting to call CoconaApp.Run".
Breakpointing into this test, I can hit the call to CoconaApp.Run, but the code within the lambda expression is never executed.
Expected behavior: CoconaApp.Run should work and execute the lambda expression when tested using xunit/nunit
Actual behavior: CoconaApp.Run never executes the lambda expression when tested using xunit/nunit.
Had anyone successfully ran Cocona as part of their integration tests?
The text was updated successfully, but these errors were encountered: