public void FluentExportStrategyConfigurationGeneric_WithCtorParam_Two_Arg_Null( FluentExportStrategyConfiguration <BasicService> configuration, ICompiledExportStrategy strategy) { Func <MultipleService1, MultipleService2, IDependentService <IMultipleService> > func = null; Assert.Throws <ArgumentNullException>(() => configuration.WithCtorParam(func)); }
public void FluentExportStrategyConfigurationGeneric_WithCtorParam_Two_Arg( FluentExportStrategyConfiguration <BasicService> configuration, ICompiledExportStrategy strategy) { Func <MultipleService1, MultipleService2, IDependentService <IMultipleService> > func = (service, service2) => null; configuration.WithCtorParam(func); strategy.Received().ConstructorParameter(NSubstitute.Arg.Is <ConstructorParameterInfo>(info => info.ExportFunc == func)); }