Esempio n. 1
0
        public void Run(IMethodTester tester, string method)
        {
            var signature = tester.GetSignature(method);
            var table     = CreateModel(signature);

            foreach (var args in table)
            {
                tester.Run(method, args);
            }
        }
Esempio n. 2
0
 protected TestBase(IDataGenerator dataGenerator, IObjectCreator objectCreator = null, IAssertAdapter assertAdapter = null,
                    IAssertHelper assertHelper = null, IMethodTester methodTester = null, IConstructorTester constructorTester = null)
     : base(dataGenerator)
 {
     ObjectCreator     = objectCreator ?? new ReflectionBasedObjectCreator();
     _assertAdapter    = assertAdapter ?? new NUnitAssertAdapter();
     Asserter          = assertHelper ?? new SurrogateAsserter(_assertAdapter, new AsserterStrategyFactory(_assertAdapter));
     MethodTester      = methodTester ?? new MethodTester(dataGenerator);
     ConstructorTester = constructorTester ?? new ConstructorTester(dataGenerator);
 }