Exemplo n.º 1
0
        public SurrogateAsserter(IAssertAdapter assertAdapter, IAsserterStrategyFactory asserterStrategyFactory)
        {
            Assert = assertAdapter;
            _asserterStrategyFactory = asserterStrategyFactory;

            _asserterStrategyFactory.Asserter = this;
        }
Exemplo 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);
 }
Exemplo n.º 3
0
 public BooleanAsserterStrategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }
Exemplo n.º 4
0
 public Int32AsserterStrategy(IAssertAdapter assertAdapter)
     : base(assertAdapter)
 {
 }
Exemplo n.º 5
0
 protected MockDataItemTestBase(IDataGenerator dataGenerator, IAssertAdapter assertAdapter,
                                IDataReaderHelper dataReaderHelper) : base(dataGenerator, assertAdapter)
 {
     DataReaderHelper = dataReaderHelper;
 }
Exemplo n.º 6
0
 public UriAsserterStrategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }
Exemplo n.º 7
0
 protected MockTestBase(IObjectCreator objectCreator, IAssertAdapter assertAdapter)
     : base(new RandomDataGenerator(), objectCreator, assertAdapter,
            new SurrogateAsserter(assertAdapter))
 {
     Setup();
 }
Exemplo n.º 8
0
 protected MockTestBase(IDataGenerator dataGenerator, IAssertAdapter assertAdapter)
     : base(dataGenerator, new ReflectionBasedObjectCreator(), assertAdapter,
            new SurrogateAsserter(assertAdapter))
 {
     Setup();
 }
Exemplo n.º 9
0
 public StringAsserterStategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }
Exemplo n.º 10
0
 public AsserterStrategyFactory(IAssertAdapter assertAdapter)
 {
     Assert = assertAdapter;
     InitializePrimitiveStrategies();
 }
Exemplo n.º 11
0
 public EnumerableAsserterStrategy(IAssertAdapter assertAdapter,
                                   IAsserterStrategyFactory asserterStrategyFactory)
     : base(assertAdapter)
 {
     _asserterStrategyFactory = Guard.ThrowIfNull("asserterStrategyFactory", asserterStrategyFactory);
 }
Exemplo n.º 12
0
 public LongAsserterStrategy(IAssertAdapter assertAdapter)
     : base(assertAdapter)
 {
 }
Exemplo n.º 13
0
 public TestRunner(IAssertAdapter assertAdapter, Action classSetup, Action classCleanup)
 {
     Assert = assertAdapter;
     ClassSetup = classSetup;
     ClassCleanup = classCleanup;
 }
Exemplo n.º 14
0
 public DateTimeAsserterStrategy(IAssertAdapter assertAdapter)
     : base(assertAdapter)
 {
 }
Exemplo n.º 15
0
 public ObjectAsserterStrategy(IAssertAdapter assertAdapter, IAssertHelper asserter)
     : base(assertAdapter)
 {
     _asserter = asserter;
 }
Exemplo n.º 16
0
 public NullableAsserterStrategy(IAssertAdapter assertAdapter)
     : base(assertAdapter)
 {
 }
Exemplo n.º 17
0
 public ExceptionAsserter(IAssertAdapter assertAdapter)
 {
     Assert = assertAdapter;
 }
Exemplo n.º 18
0
 protected MockTestBase(IDataGenerator dataGenerator, IObjectCreator objectCreator,
                        IAssertAdapter assertAdapter)
     : base(dataGenerator, objectCreator, assertAdapter)
 {
     Setup();
 }
Exemplo n.º 19
0
 public SurrogateAsserter(IAssertAdapter asserterAdapter)
     : this(asserterAdapter, new AsserterStrategyFactory(asserterAdapter))
 {
 }
Exemplo n.º 20
0
 public GuidAsserterStrategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }
Exemplo n.º 21
0
 public Tuple2AsserterStrategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }
Exemplo n.º 22
0
 public ByteAsserterStrategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }
Exemplo n.º 23
0
 protected AsserterStrategyBase(IAssertAdapter assertAdapter)
 {
     Assert = assertAdapter;
 }
Exemplo n.º 24
0
 protected MockDataItemTestBase(IObjectCreator objectCreator, IAssertAdapter assertAdapter, IDataReaderHelper dataReaderHelper) : base(objectCreator, assertAdapter)
 {
     DataReaderHelper = dataReaderHelper;
 }
Exemplo n.º 25
0
 public EnumAsserterStrategy(IAssertAdapter assertAdapter) : base(assertAdapter)
 {
 }