c#:Why when I try to use coalesce operator in a mock it doesn't work

后端 未结 0 909
逝去的感伤
逝去的感伤 2020-12-24 15:19

Why when I am trying to use a mock like this:

public void Test(string param=null){
    MyMock.Setup(x=>x.foo(param ?? It.IsAny));
 }
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题