[Fat-develop] FAT/src/FAT.Console ConsoleMain.cs,1.3,1.4
Brought to you by:
exortech
|
From: <exo...@us...> - 2004-01-20 06:01:26
|
Update of /cvsroot/fat/FAT/src/FAT.Console
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/src/FAT.Console
Modified Files:
ConsoleMain.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: ConsoleMain.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Console/ConsoleMain.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ConsoleMain.cs 15 Jan 2004 00:56:57 -0000 1.3
--- ConsoleMain.cs 20 Jan 2004 06:01:19 -0000 1.4
***************
*** 1,3 ****
--- 1,4 ----
using FAT.Core;
+ using FAT.Core.Configuration;
using System;
using System.Diagnostics;
***************
*** 17,21 ****
private ITestRunner runner;
! public ConsoleMain(string[] args) : this(new TestFileScanner(args), new TestParser(), new TestRunnerFactory().Create()) { }
public ConsoleMain(ITestFileScanner scanner, ITestParser parser, ITestRunner runner)
--- 18,22 ----
private ITestRunner runner;
! public ConsoleMain(IConfiguration configuration) : this(configuration.TestFileScanner, configuration.TestParser, configuration.TestRunner) { }
public ConsoleMain(ITestFileScanner scanner, ITestParser parser, ITestRunner runner)
***************
*** 26,32 ****
}
! public void Run()
{
! ITestFile[] testfiles = scanner.Scan();
if (testfiles.Length == 0)
{
--- 27,33 ----
}
! public void Run(string[] args)
{
! ITestFile[] testfiles = scanner.Scan(args);
if (testfiles.Length == 0)
{
***************
*** 64,68 ****
try
{
! new ConsoleMain(args).Run();
}
catch (Exception ex)
--- 65,69 ----
try
{
! new ConsoleMain(ConfigurationFactory.Create()).Run(args);
}
catch (Exception ex)
|