public void IgnoresNonSubstituteSpecimens() { var context = Substitute.For <ISpecimenContext>(); var specimen = new ConcreteTypeWithVirtualMembers(); var sut = new NSubstituteVirtualMethodsCommand(); Assert.Null(Record.Exception(() => sut.Execute(specimen, context))); context.DidNotReceiveWithAnyArgs().Resolve(null); }
public void IgnoresNonSubstituteSpecimens() { var context = Substitute.For<ISpecimenContext>(); var specimen = new ConcreteTypeWithVirtualMembers(); var sut = new NSubstituteVirtualMethodsCommand(); Assert.DoesNotThrow(() => sut.Execute(specimen, context)); context.DidNotReceiveWithAnyArgs().Resolve(null); }