public void ThrowsOnNullInvocation(ProceedingInterceptor sut) { sut.Invoking(s => s.Intercept(null)) .ShouldThrow<ArgumentNullException>(); }
public void CallsProceedOnInvocation(ProceedingInterceptor sut, IInvocation invocation) { sut.Intercept(invocation); invocation.Received().Proceed(); }
public void SutIsInterceptor(ProceedingInterceptor sut) { sut.Should().BeAssignableTo<IInterceptor>(); }