From: <sk...@us...> - 2003-12-01 18:35:11
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/Console/Commands In directory sc8-pr-cvs1:/tmp/cvs-serv27773/src/ICSharpCode.Tests/SharpCvsLib/Console/Commands Modified Files: CommitCommandTest.cs Log Message: Updated the CommitCommand tests. Index: CommitCommandTest.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/Console/Commands/CommitCommandTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CommitCommandTest.cs 27 Nov 2003 06:04:39 -0000 1.1 --- CommitCommandTest.cs 1 Dec 2003 18:35:07 -0000 1.2 *************** *** 83,87 **** } /// <summary> ! /// Checkout files based on revision specified in -r option. /// /// </summary> --- 83,87 ---- } /// <summary> ! /// Commit files based on revision specified in -r option. /// /// </summary> *************** *** 92,109 **** // String options = "-rv0_3_1 "; // Test Creating a CommitCommand object ! // CommitCommand newCommitCommand = new CheckoutCommand(root, repository, options); // Assertion.AssertNotNull ("Should have a command object.", newCommitCommand); // newCommitCommand.Execute(); } /// <summary> ! /// Checkout files to specified local location instead of current local location ! /// with the -d option /// </summary> [Test] ! public void MinusdOptionCommitFileIntoDir (){ // String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; // String repository = "sharpcvslib"; ! // String options = "-dnewlocation "; ! // Test Creating a CheckoutCommand object // CheckoutCommand newCheckoutCommand = new CheckoutCommand(root, repository, options); // Assertion.AssertNotNull ("Should have a command object.", newCheckoutCommand); --- 92,109 ---- // String options = "-rv0_3_1 "; // Test Creating a CommitCommand object ! // CommitCommand newCommitCommand = new CommitCommand(root, repository, options); // Assertion.AssertNotNull ("Should have a command object.", newCommitCommand); // newCommitCommand.Execute(); } /// <summary> ! /// Commit files with message in specified log file ! /// with the -F option /// </summary> [Test] ! public void MinusdOptionCommitFileWithLogFileMsg (){ // String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; // String repository = "sharpcvslib"; ! // String options = "-Flogfile.txt "; ! // Test Creating a CommitCommand object // CheckoutCommand newCheckoutCommand = new CheckoutCommand(root, repository, options); // Assertion.AssertNotNull ("Should have a command object.", newCheckoutCommand); *************** *** 112,132 **** } /// <summary> ! /// Checkout files no earlier than the specified Date ! /// with the -D option /// </summary> [Test] ! public void MinusDOptionCommitByCertainDate (){ // String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; // String repository = "sharpcvslib"; ! // String options = "-D01.28.03 "; // Test Creating a CheckoutCommand object // CheckoutCommand newCheckoutCommand = new CheckoutCommand(root, repository, options); // Assertion.AssertNotNull ("Should have a command object.", newCheckoutCommand); // newCheckoutCommand.Execute(); ! // Find a file that should exist ! //Assertion.Assert ("Should have found the check file. file=[" + ! // checkFile + "]", File.Exists (checkFile)); ! ! // Find a file that should not exist //Assertion.Assert ("Should have found the check file. file=[" + // checkFile + "]", File.Exists (checkFile)); --- 112,128 ---- } /// <summary> ! /// Commit files with specified message text ! /// with the -m option /// </summary> [Test] ! public void MinusDOptionCommitFilesWithMsg (){ // String root = ":pserver:ano...@cv...:/cvsroot/sharpcvslib"; // String repository = "sharpcvslib"; ! // String options = "-m01.28.03 "; // Test Creating a CheckoutCommand object // CheckoutCommand newCheckoutCommand = new CheckoutCommand(root, repository, options); // Assertion.AssertNotNull ("Should have a command object.", newCheckoutCommand); // newCheckoutCommand.Execute(); ! // Verify file with new message text //Assertion.Assert ("Should have found the check file. file=[" + // checkFile + "]", File.Exists (checkFile)); |