public void UseInterceptor_WithNotNull_ShouldNotBeNull() { var sut = new ModelConverterBuilder(); var interceptor = new Mock<IModelConverterInterceptor>(); var chain = sut.UseInterceptor(interceptor.Object); sut.ModelConverterInterceptor.ShouldNotBeNull(); chain.ShouldNotBeNull(); chain.ShouldBeAssignableTo<IModelConverterCreateBuilder>(); }
public void UseInterceptor_WithNull_ShouldThrowException() { var sut = new ModelConverterBuilder(); Should.Throw<ArgumentNullException>(() => { var chain = sut.UseInterceptor(null); }); }