I am using version 1.3.0.0, but I could do:
Constraint failing = Substitute.For<Constraint>(); failing.Matches(-1).Returns(false);
Where Constraint is a class with virtual methods, and the method call has been replaced just fine.
Daniel Gonzalez
source share