public void TypeIsRequiredWhenGeneratingProxy()
        {
            //Arrange
            var generator = new ProxyGenerator();

            //Act + Assert
            Expect.ArgumentNullException(() => generator.Generate(null));
        }
Example #2
0
        public void InnerContainerIsARequiredParameterForConstructor()
        {
            //Arrange
            Configuration configuration = null;

            //Act + Assert
            Expect.ArgumentNullException(() => new ForceFieldUnityContainer(configuration));
        }
Example #3
0
        public void ConfigIsRequiredPropertyForConstructor()
        {
            //Arrange
            var catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());

            //act + assert
            Expect.ArgumentNullException(() => new ForceFieldContainer(catalog, null));
        }
Example #4
0
        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));
        }
Example #7
0
 public void CreateMethodIsRequired()
 {
     Expect.ArgumentNullException(() => new LazyAdvice <TestAdviceWithoutParameterlessConstructor>(null));
 }