Esempio n. 1
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);
 }
Esempio n. 2
0
 protected CallInstructionTests(IAssertHelper helper) : base(helper)
 {
 }
Esempio n. 3
0
 public ObjectAsserterStrategy(IAssertAdapter assertAdapter, IAssertHelper asserter)
     : base(assertAdapter)
 {
     _asserter = asserter;
 }
Esempio n. 4
0
 protected SubtractionInstructionTests(IAssertHelper helper) : base(helper)
 {
 }
Esempio n. 5
0
 protected AssertHelper(IAssertHelper helper)
 {
     this.Helper = helper;
 }