Esempio n. 1
0
 protected MappingToXmlTesterBase(ISimpleLogger logger, ILogAsserter logAsserter)
 {
     this.Logger    = logger;
     this.LogAssert = logAsserter;
     this.xmlTester = new XmlTester(logAsserter);
     this.xmlTester.ActualXmlChangedEvent   += this.XmlTester_ActualXmlChangedEvent;
     this.xmlTester.ExpectedXmlChangedEvent += this.XmlTester_ExpectedXmlChangedEvent;
 }
Esempio n. 2
0
        public TextTester(ISimpleLogger logger, ILogAsserter logAsserter, ITextDifferenceFormatter differenceFormatter)
        {
            this.logger              = logger ?? throw new ArgumentNullException(nameof(logger));
            this.logAssert           = logAsserter ?? throw new ArgumentNullException(nameof(logAsserter));
            this.differenceFormatter = differenceFormatter ?? throw new ArgumentNullException(nameof(differenceFormatter));

            this.actualText   = string.Empty;
            this.expectedText = string.Empty;
        }
Esempio n. 3
0
        protected MappingToFlatFileTesterBase(ISimpleLogger logger, ILogAsserter logAsserter)
        {
            this.Logger    = logger;
            this.LogAssert = logAsserter;

            this.textTester = new TextTester(logAsserter);
            this.textTester.ActualTextChangedEvent      += this.TextTester_ActualTextChangedEvent !;
            this.textTester.ExpectedTextChangedEvent    += this.TextTester_ExpectedTextChangedEvent !;
            this.textTester.TextDifferenceDetectedEvent += this.TextTester_TextDifferenceDetectedEvent !;
        }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MoqTestFixture" /> class.
 /// </summary>
 /// <param name="logAssert">The log asserter.</param>
 protected MoqTestFixture(ILogAsserter logAssert)
     : this(MockBehavior.Loose, new SimpleConsoleLogger(), logAssert)
 {
 }
 public XmlTester(ISimpleLogger logger, ILogAsserter logAsserter, IComparisonFormatter comparisonFormatter)
 {
     this.logger              = logger ?? throw new ArgumentNullException(nameof(logger));
     this.logAssert           = logAsserter ?? throw new ArgumentNullException(nameof(logAsserter));
     this.comparisonFormatter = comparisonFormatter ?? throw new ArgumentNullException(nameof(comparisonFormatter));
 }
Esempio n. 6
0
 protected MappingToFlatFileTesterBase(ILogAsserter logAsserter) : this(new SimpleConsoleLogger(), logAsserter)
 {
 }
 public XmlTester(ISimpleLogger logger, ILogAsserter logAsserter) : this(logger, logAsserter, new DefaultComparisonFormatter())
 {
 }
 public XmlTester(ILogAsserter logAsserter, IComparisonFormatter comparisonFormatter) : this(new SimpleConsoleLogger(), logAsserter, comparisonFormatter)
 {
 }
Esempio n. 9
0
 public MappingFromXmlToXmlTester(ILogAsserter logAsserter) : base(logAsserter)
 {
 }
 public XmlTester(ILogAsserter logAsserter) : this(new SimpleConsoleLogger(), logAsserter)
 {
 }
Esempio n. 11
0
 public BizTalkXmlToFlatFileMapTester(ILogAsserter logAsserter) : base(logAsserter)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TestEasy" /> class.
 /// </summary>
 /// <param name="logAssert">The log asserter.</param>
 protected TestEasy(ILogAsserter logAssert) : this(new SimpleConsoleLogger(), logAssert)
 {
 }
Esempio n. 13
0
 public TextTester(ILogAsserter logAsserter, ITextDifferenceFormatter differenceFormatter) : this(new SimpleConsoleLogger(), logAsserter, differenceFormatter)
 {
 }
 public MappingFromFlatFileToFlatFileTester(ILogAsserter logAsserter) : base(logAsserter)
 {
 }
Esempio n. 15
0
 public TextTester(ISimpleLogger logger, ILogAsserter logAsserter) : this(logger, logAsserter, new DefaultTextDifferenceFormatter())
 {
 }
 public XmlAsserter(ISimpleLogger logger, ILogAsserter logAsserter)
 {
     this.logger    = logger;
     this.logAssert = logAsserter;
 }
Esempio n. 17
0
 public MappingFromXmlToXmlTester(ISimpleLogger logger, ILogAsserter logAsserter) : base(logger, logAsserter)
 {
 }
 public BizTalkXmlToXmlMapTester(ISimpleLogger logger, ILogAsserter logAsserter) : base(logger, logAsserter)
 {
     this.logger    = logger;
     this.logAssert = logAsserter;
 }
 public BizTalkXmlToXmlMapTester(ILogAsserter logAsserter) : this(new SimpleConsoleLogger(), logAsserter)
 {
 }
 public MappingFromFlatFileToFlatFileTester(ISimpleLogger logger, ILogAsserter logAsserter) : base(logger, logAsserter)
 {
 }
Esempio n. 21
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MoqTestFixture" /> class.
 /// </summary>
 /// <param name="logger">The simple logger to use.</param>
 /// <param name="logAssert">The log asserter.</param>
 protected MoqTestFixture(ISimpleLogger logger, ILogAsserter logAssert)
     : this(MockBehavior.Loose, logger, logAssert)
 {
 }
Esempio n. 22
0
 public BizTalkXmlToFlatFileMapTester(ISimpleLogger logger, ILogAsserter logAsserter) : base(logger, logAsserter)
 {
 }
Esempio n. 23
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MoqTestFixture" /> class.
 /// </summary>
 /// <param name="mockBehaviour">The type of mock behavior.</param>
 /// <param name="logger">The simple logger to use.</param>
 /// <param name="logAssert">The log asserter.</param>
 protected MoqTestFixture(MockBehavior mockBehaviour, ISimpleLogger logger, ILogAsserter logAssert)
     : base(logger, logAssert)
 {
     this.MyMockRepository = new MockRepository(mockBehaviour);
 }
 protected TestEasy(ISimpleLogger logger, ILogAsserter logAssert)
 {
     this.logger            = logger;
     this.logAssert         = logAssert;
     this.ExpectedException = new ExpectedExceptionDescriptor(logger);
 }
Esempio n. 25
0
 public BizTalkFlatFileToXmlMapTester(ILogAsserter logAsserter) : base(logAsserter)
 {
 }