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