public void NoAssemblyHasDuplicateRegistrars()
 {
     var sweeper = new ServiceLocationAssemblySweep();
     var types = sweeper.GetRegistrarTypes();
     List<Assembly> found = new List<Assembly>();
     foreach (var type in types)
     {
         if (found.Contains(type.Key.Assembly))
         {
             Assert.Fail("No assembly can contain more than one Ioc Registrar");
         }
         found.Add(type.Key.Assembly);
     }
 }
Exemplo n.º 2
0
        public void NoAssemblyHasDuplicateRegistrars()
        {
            var             sweeper = new ServiceLocationAssemblySweep();
            var             types   = sweeper.GetRegistrarTypes();
            List <Assembly> found   = new List <Assembly>();

            foreach (var type in types)
            {
                if (found.Contains(type.Key.Assembly))
                {
                    Assert.Fail("No assembly can contain more than one Ioc Registrar");
                }
                found.Add(type.Key.Assembly);
            }
        }