public void TypeIsRequiredWhenGeneratingProxy() { //Arrange var generator = new ProxyGenerator(); //Act + Assert Expect.ArgumentNullException(() => generator.Generate(null)); }
public void InnerContainerIsARequiredParameterForConstructor() { //Arrange Configuration configuration = null; //Act + Assert Expect.ArgumentNullException(() => new ForceFieldUnityContainer(configuration)); }
public void ConfigIsRequiredPropertyForConstructor() { //Arrange var catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly()); //act + assert Expect.ArgumentNullException(() => new ForceFieldContainer(catalog, null)); }
public void CatalogIsRequiredPropertyForConstructor() { //Arrange var config = new Configuration(); //act + assert Expect.ArgumentNullException(() => new ForceFieldContainer(null, config)); }
public void ConfigurationIsARequiredParameterForBuildMethod() { //Arrange var builder = new ContainerBuilder(); //Act + Assert Expect.ArgumentNullException(() => builder.Build(null)); }
public void ContainerBuilderIsARequiredParameterForBuildMethod() { //Arrange ContainerBuilder builder = null; var config = new Configuration(); //Act + Assert Expect.ArgumentNullException(() => ContainerBuilderExtensions.Build(builder, config)); }
public void CreateMethodIsRequired() { Expect.ArgumentNullException(() => new LazyAdvice <TestAdviceWithoutParameterlessConstructor>(null)); }