public void Scan_SampleAssembly_DoesNotRegisterCompilerGeneratedTypes()
        {
            FooWithCompilerGeneratedType foo = new FooWithCompilerGeneratedType();
            var container = new ServiceContainer();

            container.RegisterAssembly(typeof(Foo).Assembly);
            Assert.IsFalse(container.AvailableServices.Any(si => si.ImplementingType != null && si.ImplementingType.IsDefined(typeof(CompilerGeneratedAttribute), false)));
        }
 public void Scan_SampleAssembly_DoesNotRegisterCompilerGeneratedTypes()
 {
     FooWithCompilerGeneratedType foo = new FooWithCompilerGeneratedType();
     var container = new ServiceContainer();
     container.RegisterAssembly(typeof(Foo).Assembly);
     Assert.IsFalse(container.AvailableServices.Any(si => si.ImplementingType != null && si.ImplementingType.IsDefined(typeof(CompilerGeneratedAttribute), false)));
 }