public void Load_TwoClassesInNamespace_OnlyOneShouldLoad()
        {
            //Assign 
            Type testType = typeof(AttributeConfigurationLoaderFixtureNS.TestSet2.TestSet2);
            var namespaces = new string[] { string.Format("{0},{1}", testType.Namespace, testType.Assembly) };
            AttributeConfigurationLoader loader = new AttributeConfigurationLoader(namespaces);

            //Act
            var result = loader.Load();

            //Assert
            Assert.AreEqual(1, result.Count());
            Assert.AreEqual(testType, result.First().Type);

        }
        public void Load_SingleClass_LoadsClassNoMembers()
        {
            //Assign 
            Type testType = typeof(AttributeConfigurationLoaderFixtureNS.TestSet1.TestSet1);
            var namespaces = new string []{string.Format("{0},{1}", testType.Namespace,testType.Assembly)};
            AttributeConfigurationLoader loader = new AttributeConfigurationLoader(namespaces);

            //Act
            var result = loader.Load();

            //Assert
            Assert.AreEqual(1, result.Count());
            Assert.AreEqual(testType, result.First().Type);

        }
        public void Constructor_NoParameters()
        {
            //Assign

            AttributeConfigurationLoader loader = new AttributeConfigurationLoader();

            //Act
            var result = loader.Load();

            //Result 

            Assert.IsTrue(result.Count() > 0);
            Console.WriteLine("Classes loaded by assembly: " + result.Count());
        }
        public void Load_LoadsInheritedFromClass()
        {
            //Assign
            Type testType = typeof(AttributeConfigurationLoaderFixtureNS.TestSet6.TestSet6);
            var namespaces = new string[] { string.Format("{0},{1}", testType.Namespace, testType.Assembly) };
            AttributeConfigurationLoader loader = new AttributeConfigurationLoader(namespaces);

            //Act
            var result = loader.Load();

            //Assert
            Assert.AreEqual(2, result.Count());
            Assert.IsTrue(result.Any(x => x.Type == testType));
            Assert.AreEqual(2, result.First(x => x.Type == testType).Properties.Count());

        }
        public void Constructor_LoadClassesByAssembly()
        {
            //Assign

            AttributeConfigurationLoader loader = new AttributeConfigurationLoader("Glass.Sitecore.Mapper.Tests");

            //Act
            var result = loader.Load();

            //Result 

            Assert.IsTrue(result.Count() > 0);
            Console.WriteLine("Classes loaded by assembly: " + result.Count());
        }