With NSubstitute, is there a way to capture the value that you pass to the property device?
eg. if I have the following interface:
public interface IStudent { int Id { set; } string Name { set; } }
Let's say I have a replacement created, for example:
var _studentSub = Substitute.For<IStudent>();
Is there any way to intercept and fix the value if any of the โestablishedโ replacement methods are called?
bstack
source share