From: <sk...@us...> - 2003-12-02 21:34:06
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/Console/Commands In directory sc8-pr-cvs1:/tmp/cvs-serv28375/src/ICSharpCode.Tests/SharpCvsLib/Console/Commands Modified Files: RTagCommandTest.cs Log Message: Using the test setting parameters for RTag command tests. Index: RTagCommandTest.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/Console/Commands/RTagCommandTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** RTagCommandTest.cs 1 Dec 2003 18:31:36 -0000 1.1 --- RTagCommandTest.cs 2 Dec 2003 21:34:02 -0000 1.2 *************** *** 60,65 **** /// Constructory for test case. /// </summary> ! public RTagCommandTest () ! { } --- 60,64 ---- /// Constructory for test case. /// </summary> ! public RTagCommandTest () { } *************** *** 73,79 **** Environment.CurrentDirectory = settings.Config.LocalPath; ! String commandLine = "-d:pserver:ano...@cv...:/cvsroot/sharpcvslib rt sharpcvslib"; String [] commandLineArgs = commandLine.Split(' '); ! // Test Creating a RTagCommand object ConsoleMain consoleMain = new ConsoleMain(); consoleMain.Execute(commandLineArgs); --- 72,78 ---- Environment.CurrentDirectory = settings.Config.LocalPath; ! String commandLine = "-d" + settings.Config.Cvsroot + " rt " + settings.Config.Module; String [] commandLineArgs = commandLine.Split(' '); ! // Test Create the consoleMain to test the console RTagCommand ConsoleMain consoleMain = new ConsoleMain(); consoleMain.Execute(commandLineArgs); *************** *** 85,96 **** /// </summary> [Test] ! public void MinusrOptionRTagFilesBasedOnRevision (){ ! String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; ! String repository = "sharpcvslib"; ! String options = "-rv0_3_1 "; ! // Test Creating a RTagCommand object ! RTagCommand rtagCommand = new RTagCommand(root, repository, options); ! Assertion.AssertNotNull ("Should have a command object.", rtagCommand); ! //rtagCommand.Execute(); } /// <summary> --- 84,98 ---- /// </summary> [Test] ! public void MinusrOptionRTagFilesBasedOnRevision () { ! Directory.CreateDirectory( settings.Config.LocalPath); ! Environment.CurrentDirectory = settings.Config.LocalPath; ! ! String commandLine = "-d" + settings.Config.Cvsroot + " rt -r " + ! settings.Config.Tag1 + " " + settings.Config.Module; ! String [] commandLineArgs = commandLine.Split(' '); ! // Test Create the consoleMain to test the console RTagCommand ! ConsoleMain consoleMain = new ConsoleMain(); ! consoleMain.Execute(commandLineArgs); ! Assertion.AssertNotNull ("Should have a command object.", consoleMain); } /// <summary> *************** *** 99,111 **** /// </summary> [Test] ! public void MinusmOptionRTagFileDescription (){ ! String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; ! String repository = "sharpcvslib"; ! String options = "-mnewdescription "; ! // Test Creating a RTagCommand object ! RTagCommand rtagCommand = new RTagCommand(root, repository, options); ! Assertion.AssertNotNull ("Should have a command object.", rtagCommand); ! //rtagCommand.Execute(); ! //Assertion.Assert(Directory.Exists("newlocation")); } /// <summary> --- 101,115 ---- /// </summary> [Test] ! public void MinusmOptionRTagFileDescription () { ! Directory.CreateDirectory( settings.Config.LocalPath); ! Environment.CurrentDirectory = settings.Config.LocalPath; ! ! String commandLine = "-d" + settings.Config.Cvsroot + " rt -m newdescription " + ! settings.Config.Module; ! String [] commandLineArgs = commandLine.Split(' '); ! // Test Create the consoleMain to test the console RTagCommand ! ConsoleMain consoleMain = new ConsoleMain(); ! consoleMain.Execute(commandLineArgs); ! Assertion.AssertNotNull ("Should have a command object.", consoleMain); } /// <summary> *************** *** 114,132 **** /// </summary> [Test] ! public void MinusDOptionRTagByCertainDate (){ ! String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; ! String repository = "sharpcvslib"; ! String options = "-D01.28.03 "; ! // Test Creating a RTagCommand object ! RTagCommand rtagCommand = new RTagCommand(root, repository, options); ! Assertion.AssertNotNull ("Should have a command object.", rtagCommand); ! //rtagCommand.Execute(); ! // Find a file that should be prior to date specified ! //Assertion.Assert ("Should have found the rtag file. file=[" + ! // checkFile + "]", File.Exists (checkFile)); ! // Find a file that should be after the date specified ! //Assertion.Assert ("Should have not found the rtag file. file=[" + ! // checkFile + "]", File.Exists (checkFile)); } } --- 118,133 ---- /// </summary> [Test] ! public void MinusDOptionRTagByCertainDate () { ! Directory.CreateDirectory( settings.Config.LocalPath); ! Environment.CurrentDirectory = settings.Config.LocalPath; ! String commandLine = "-d" + settings.Config.Cvsroot + " rt -D " + ! Path.Combine(settings.Config.LocalPath, settings.Config.TargetFile) + ! " " + settings.Config.Module; ! String [] commandLineArgs = commandLine.Split(' '); ! // Test Create the consoleMain to test the console RTagCommand ! ConsoleMain consoleMain = new ConsoleMain(); ! consoleMain.Execute(commandLineArgs); ! Assertion.AssertNotNull ("Should have a command object.", consoleMain); } } |