我使用NSubstitute通过PartsOf()方法模拟一个类(我需要一些方法来工作)。MyWorker>();一个很简单的代码,类似于NSub妓女文档中的代码,但是我得到了这个异常:"An exception of type 'NSubstitute.Exceptions.CouldNotSetReturnDueToNoLastCallException' occurred in NSubstitute.dll but was not hand
日安!我需要你的帮助,我还有下一个测试: public void SetUp() controller = Substitute.For<IApplicationController>(); presenter = new CamerasPresenter(controller, view); pre