[Fat-develop] FAT/test/FAT.Test/Console ArgumentParserTest.cs,NONE,1.1
Brought to you by:
exortech
|
From: <exo...@us...> - 2004-01-15 00:57:02
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Console
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Test/Console
Added Files:
ArgumentParserTest.cs
Log Message:
commits to fat will now be sent out on developer mailing list
--- NEW FILE: ArgumentParserTest.cs ---
using FAT.Console;
using NUnit.Framework;
using System;
namespace FAT.Test.Console
{
[TestFixture]
public class ArgumentParserTest : Assertion
{
[Test]
public void ParseSpecifiedArguments()
{
string[] args = new string[] { "foo.fat", "/config:fat.config", "bar.fat" };
ArgumentParser parser = new ArgumentParser(args);
AssertEquals(2, parser.Tests.Length);
AssertEquals("foo.fat", parser.Tests[0]);
AssertEquals("bar.fat", parser.Tests[1]);
AssertEquals("fat.config", parser.Config);
}
[Test]
public void ParseDefaultArguments()
{
string[] args = new string[] { };
ArgumentParser parser = new ArgumentParser(args);
AssertEquals(1, parser.Tests.Length);
AssertEquals(System.IO.Directory.GetCurrentDirectory(), parser.Tests[0]);
AssertEquals(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, parser.Config);
}
}
}
|