コード例 #1
0
 public void Setup()
 {
     recorder  = Substitute.For <ITestExecutionRecorder>();
     converter = Substitute.For <ITestConverter>();
     dumpxml   = Substitute.For <IDumpXml>();
     settings  = Substitute.For <IAdapterSettings>();
     executor  = Substitute.For <INUnit3TestExecutor>();
     executor.Settings.Returns(settings);
 }
コード例 #2
0
 public void Setup()
 {
     recorder  = Substitute.For <IFrameworkHandle>();
     converter = Substitute.For <ITestConverterCommon>();
     dumpxml   = Substitute.For <IDumpXml>();
     settings  = Substitute.For <IAdapterSettings>();
     executor  = Substitute.For <INUnit3TestExecutor>();
     executor.Settings.Returns(settings);
     executor.FrameworkHandle.Returns(recorder);
 }
コード例 #3
0
 public void Setup()
 {
     recorder  = Substitute.For <ITestExecutionRecorder>();
     converter = Substitute.For <ITestConverter>();
     dumpxml   = Substitute.For <IDumpXml>();
 }
コード例 #4
0
 public NUnitEventListener(ITestExecutionRecorder recorder, ITestConverter testConverter, IDumpXml dumpXml)
 {
     this.dumpXml   = dumpXml;
     _recorder      = recorder;
     _testConverter = testConverter;
 }