public void TestExcludedProperties()
 {
     var tester = new AssemblyTester(typeof(IncorrectConstructors).Assembly);
     tester.Exclusions.AddType(typeof(GenericClass<>));
     tester.AddPropertyExclusions(typeof(IncorrectProperties), "Dummy4", "Dummy3");
     tester.TestAssembly(true, false);
 }
 public void TestExcludedPropertiesLambda()
 {
     var tester = new AssemblyTester(typeof(IncorrectConstructors).Assembly);
     tester.Exclusions.AddType(typeof(GenericClass<>));
     tester.AddConstructorExclusion(() => new IncorrectConstructors(string.Empty,0, false,string.Empty));
     tester.AddConstructorExclusion(() => new IncorrectConstructors(string.Empty, string.Empty));
     tester.TestAssembly(false, true);
 }
 public void TestExcludedProperties()
 {
     var tester = new AssemblyTester(typeof(IncorrectConstructors).Assembly);
     tester.Exclusions.AddType(typeof(GenericClass<>));
     tester.AddConstructorExclusion(typeof(IncorrectConstructors), typeof(string), typeof(int), typeof(bool), typeof(string));
     tester.AddConstructorExclusion(typeof(IncorrectConstructors), typeof(string), typeof(string));
     tester.TestAssembly(false, true);
 }
        public void TestExcludedPropertiesWithLambda()
        {
            var tester = new AssemblyTester(typeof(IncorrectConstructors).Assembly);
            tester.Exclusions.AddType(typeof(GenericClass<>));

            tester.AddPropertyExclusion<IncorrectProperties>(x => x.Dummy4);
            tester.AddPropertyExclusion<IncorrectProperties>(x => x.Dummy3);
            tester.TestAssembly(true, false);
        }