C# Debugging an Action

884 views Asked by At

I have a .net core w/ .Net Framework project with a respective Test project. I'm using the xBehave xunit extension for unit testing. xBehave allows you to write what looks like a string extension that takes an Action.

public void Should_Create_Request()
 {
     "Given a Create OrderCommand Request"
                    .x(() => _orderCommand = Create());
 }

When debugging this unit test, if I set a breakpoint in the Create method, the breakpoint never gets hit. The tests run successful, however I need to be able to step into code contained within the expression body.

0

There are 0 answers