public void SetUp() { target = new TestRunnerImpl(); args = Stub <ITestRunnerArgs>(); parser = Stub <IParser>(); cleaner = Stub <ICleaner>(); runDataBuilder = Stub <IRunDataBuilder>(); runDataListBuilder = Stub <IRunDataListBuilder>(); executorLauncher = Stub <IExecutorLauncher>(); trxWriter = Stub <ITrxWriter>(); breaker = Stub <IBreaker>(); enumerator = Stub <IRunDataEnumerator>(); windowsFileHelper = Stub <IWindowsFileHelper>(); collector = Stub <ICollector>(); target.Args = args; target.Parser = parser; target.Cleaner = cleaner; target.RunDataBuilder = runDataBuilder; target.RunDataListBuilder = runDataListBuilder; target.ExecutorLauncher = executorLauncher; target.TrxWriter = trxWriter; target.Breaker = breaker; target.Collector = collector; target.WindowsFileHelper = windowsFileHelper; }
public void SetUp() { fileHelper = Stub <IWindowsFileHelper>(); target = new VSTestFileHelperImpl(); target.WindowsFileHelper = fileHelper; input = new RunData() { Root = "ROOT", RunId = Guid.NewGuid(), Output = new StringBuilder("THE CONTENT OF THE FILE") }; }
public void SetUp() { target = new TestRunnerImpl(); args = Stub<ITestRunnerArgs>(); parser = Stub<IParser>(); cleaner = Stub<ICleaner>(); runDataBuilder = Stub<IRunDataBuilder>(); runDataListBuilder = Stub<IRunDataListBuilder>(); executorLauncher = Stub<IExecutorLauncher>(); trxWriter = Stub<ITrxWriter>(); breaker = Stub<IBreaker>(); enumerator = Stub<IRunDataEnumerator>(); windowsFileHelper = Stub<IWindowsFileHelper>(); collector = Stub<ICollector>(); target.Args = args; target.Parser = parser; target.Cleaner = cleaner; target.RunDataBuilder = runDataBuilder; target.RunDataListBuilder = runDataListBuilder; target.ExecutorLauncher = executorLauncher; target.TrxWriter = trxWriter; target.Breaker = breaker; target.Collector = collector; target.WindowsFileHelper = windowsFileHelper; }
public void SetUp() { target = new TrxWriter(); parser = new TrxParser(); target.SummaryCalculator = new SummaryCalculatorImpl(); windowsFileHelper = Stub <IWindowsFileHelper>(); target.WindowsFileHelper = windowsFileHelper; files = new List <ResultFile>() { new ResultFile() { Summary = new ResultSummary() { Outcome = "Passed", Total = 1, Executed = 2, Passed = 3, Failed = 4, Error = 5, Timeout = 6, Aborted = 7, Inconclusive = 8, PassedButRunAborted = 9, NotRunnable = 10, NotExecuted = 20, Disconnected = 30, Warning = 40, Completed = 50, InProgress = 60, Pending = 70, StartTime = new DateTime(2001, 1, 21), FinishTime = new DateTime(2001, 1, 22), }, Results = new List <TestResult>() { new TestResult() { TestName = "TEST_A1", ClassName = "CLASS_A1", Duration = "DURATION_A1", Outcome = "OUTCOME_A1", TestId = Guid.NewGuid() }, new TestResult() { TestName = "TEST_A2", ClassName = "CLASS_A2", Duration = "DURATION_A2", Outcome = "OUTCOME_A2", TestId = Guid.NewGuid(), ErrorMessage = "ERROR_A2", StackTrace = "STACK_TRACE_A2" }, new TestResult() { TestName = "TEST_A3", ClassName = "CLASS_A3", Duration = "DURATION_A3", Outcome = "OUTCOME_A3", TestId = Guid.NewGuid() }, } }, new ResultFile() { Summary = new ResultSummary() { Outcome = "Failed", Total = 10, Executed = 20, Passed = 30, Failed = 40, Error = 50, Timeout = 60, Aborted = 70, Inconclusive = 80, PassedButRunAborted = 90, NotRunnable = 100, NotExecuted = 200, Disconnected = 300, Warning = 400, Completed = 500, InProgress = 600, Pending = 700, StartTime = new DateTime(2002, 1, 21), FinishTime = new DateTime(2002, 1, 22), }, Results = new List <TestResult>() { new TestResult() { TestName = "TEST_B1", ClassName = "CLASS_B1", Duration = "DURATION_B1", Outcome = "OUTCOME_B1", TestId = Guid.NewGuid() }, new TestResult() { TestName = "TEST_B2", ClassName = "CLASS_B2", Duration = "DURATION_B2", Outcome = "OUTCOME_B2", TestId = Guid.NewGuid(), ErrorMessage = "ERROR_B2", StackTrace = "STACK_TRACE_B2" }, new TestResult() { TestName = "TEST_B3", ClassName = "CLASS_B3", Duration = "DURATION_B3", Outcome = "OUTCOME_B3", TestId = Guid.NewGuid() }, } }, new ResultFile() { Summary = new ResultSummary() { Outcome = "Passed", Total = 100, Executed = 200, Passed = 300, Failed = 400, Error = 500, Timeout = 600, Aborted = 700, Inconclusive = 800, PassedButRunAborted = 900, NotRunnable = 1000, NotExecuted = 2000, Disconnected = 3000, Warning = 4000, Completed = 5000, InProgress = 6000, Pending = 7000, StartTime = new DateTime(2003, 1, 21), FinishTime = new DateTime(2003, 1, 22), }, Results = new List <TestResult>() { new TestResult() { TestName = "TEST_C1", ClassName = "CLASS_C1", Duration = "DURATION_C1", Outcome = "OUTCOME_C1", TestId = Guid.NewGuid() }, new TestResult() { TestName = "TEST_C2", ClassName = "CLASS_C2", Duration = "DURATION_C2", Outcome = "OUTCOME_C2", TestId = Guid.NewGuid(), ErrorMessage = "ERROR_C2", StackTrace = "STACK_TRACE_C2" }, new TestResult() { TestName = "TEST_C3", ClassName = "CLASS_C3", Duration = "DURATION_C3", Outcome = "OUTCOME_C3", TestId = Guid.NewGuid() }, } } }; }
public void SetUp() { target = new TrxWriter(); parser = new TrxParser(); target.SummaryCalculator = new SummaryCalculatorImpl(); windowsFileHelper = Stub<IWindowsFileHelper>(); target.WindowsFileHelper = windowsFileHelper; files = new List<ResultFile>() { new ResultFile() { Summary = new ResultSummary() { Outcome = "Passed", Total = 1, Executed = 2, Passed = 3, Failed = 4, Error = 5, Timeout = 6, Aborted = 7, Inconclusive = 8, PassedButRunAborted = 9, NotRunnable = 10, NotExecuted = 20, Disconnected = 30, Warning = 40, Completed = 50, InProgress = 60, Pending = 70, StartTime = new DateTime(2001, 1, 21), FinishTime = new DateTime(2001, 1, 22), }, Results = new List<TestResult>() { new TestResult() { TestName = "TEST_A1", ClassName = "CLASS_A1", Duration = "DURATION_A1", Outcome = "OUTCOME_A1", TestId = Guid.NewGuid() }, new TestResult() { TestName = "TEST_A2", ClassName = "CLASS_A2", Duration = "DURATION_A2", Outcome = "OUTCOME_A2", TestId = Guid.NewGuid(), ErrorMessage = "ERROR_A2", StackTrace = "STACK_TRACE_A2" }, new TestResult() { TestName = "TEST_A3", ClassName = "CLASS_A3", Duration = "DURATION_A3", Outcome = "OUTCOME_A3", TestId = Guid.NewGuid() }, } }, new ResultFile() { Summary = new ResultSummary() { Outcome = "Failed", Total = 10, Executed = 20, Passed = 30, Failed = 40, Error = 50, Timeout = 60, Aborted = 70, Inconclusive = 80, PassedButRunAborted = 90, NotRunnable = 100, NotExecuted = 200, Disconnected = 300, Warning = 400, Completed = 500, InProgress = 600, Pending = 700, StartTime = new DateTime(2002, 1, 21), FinishTime = new DateTime(2002, 1, 22), }, Results = new List<TestResult>() { new TestResult() { TestName = "TEST_B1", ClassName = "CLASS_B1", Duration = "DURATION_B1", Outcome = "OUTCOME_B1", TestId = Guid.NewGuid() }, new TestResult() { TestName = "TEST_B2", ClassName = "CLASS_B2", Duration = "DURATION_B2", Outcome = "OUTCOME_B2", TestId = Guid.NewGuid(), ErrorMessage = "ERROR_B2", StackTrace = "STACK_TRACE_B2" }, new TestResult() { TestName = "TEST_B3", ClassName = "CLASS_B3", Duration = "DURATION_B3", Outcome = "OUTCOME_B3", TestId = Guid.NewGuid() }, } }, new ResultFile() { Summary = new ResultSummary() { Outcome = "Passed", Total = 100, Executed = 200, Passed = 300, Failed = 400, Error = 500, Timeout = 600, Aborted = 700, Inconclusive = 800, PassedButRunAborted = 900, NotRunnable = 1000, NotExecuted = 2000, Disconnected = 3000, Warning = 4000, Completed = 5000, InProgress = 6000, Pending = 7000, StartTime = new DateTime(2003, 1, 21), FinishTime = new DateTime(2003, 1, 22), }, Results = new List<TestResult>() { new TestResult() { TestName = "TEST_C1", ClassName = "CLASS_C1", Duration = "DURATION_C1", Outcome = "OUTCOME_C1", TestId = Guid.NewGuid() }, new TestResult() { TestName = "TEST_C2", ClassName = "CLASS_C2", Duration = "DURATION_C2", Outcome = "OUTCOME_C2", TestId = Guid.NewGuid(), ErrorMessage = "ERROR_C2", StackTrace = "STACK_TRACE_C2" }, new TestResult() { TestName = "TEST_C3", ClassName = "CLASS_C3", Duration = "DURATION_C3", Outcome = "OUTCOME_C3", TestId = Guid.NewGuid() }, } } }; }
public void SetUp() { fileHelper = Stub<IWindowsFileHelper>(); target = new VSTestFileHelperImpl(); target.WindowsFileHelper = fileHelper; input = new RunData() { Root = "ROOT", RunId = Guid.NewGuid(), Output = new StringBuilder("THE CONTENT OF THE FILE") }; }