Integration Test .net core

I have integrated test that call my .net core webapi

The tests failed because when resolve  

Assembly.GetExecutingAssembly().Location

Return me Jetbrains test folder "C:\Program Files\JetBrains\JetBrains Rider 2020.3.2\lib\ReSharperHost\TestRunner\netcoreapp2.0\"

With Visual studio I haven't problem..

I didn't found fix for this from many days.. 

0
1 comment

Hello,

Perhaps this problem is cased by JIT optimization inlining your method. Please try to add [MethodImpl(MethodImplOptions.NoInlining)] attribute to the method where you make this call .

0

Please sign in to leave a comment.