I am writing some tests using XUnit framework and have to use some external code referenced through a dll.
When I try to step into the method call, helper.GetEntity()
, I get the following window and the execution exits.
[Fact] public void PassingTest() { var datapointJson = File.ReadAllText(@"sample.json"); dynamic datapointObject = JsonConvert.DeserializeObject(datapointJson); // This is referenced from a different project in the same solution. var helper = new Helper.Actions(); var studentEntity = helper.GetEntity("tom"); }
Does anyone know why this is happening?
To open the Call Stack window in Visual Studio, from the Debug menu, choose Windows>Call Stack.
View the call stack while in the debugger While debugging, in the Debug menu, select Windows > Call Stack or press ctrl + alt + C . A yellow arrow identifies the stack frame where the execution pointer is currently located.
(posting @camilo-terevinto's comment as answer)
Turn on 'Enable Just My Code' in Visual Studio | Tools | Debugging | General.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With