From: <dr...@pr...> - 2004-01-31 06:10:30
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/FileSystem In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25515/src/ICSharpCode.Tests/SharpCvsLib/FileSystem Modified Files: TagTest.cs Log Message: Fixed TagTest bug. Index: TagTest.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/FileSystem/TagTest.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TagTest.cs 5 Dec 2003 05:27:50 -0000 1.5 --- TagTest.cs 30 Jan 2004 05:38:55 -0000 1.6 *************** *** 53,56 **** --- 53,57 ---- SharpCvsLibTestsConfig.GetInstance(); + private readonly String RELATIVE_PATH = "src"; private readonly String TAG_ENTRY1 = "TVer1.1"; *************** *** 71,85 **** [Test] public void CreateTagTest () { ! String fullPath = this.settings.Config.LocalPath; ! Tag tag = new Tag (fullPath, this.TAG_ENTRY1); String cvsPath = Path.Combine (fullPath, "CVS"); ! Assertion.AssertNotNull ("Path not set/returned", tag.Path); ! Assertion.AssertEquals ("Path not equal", fullPath, tag.Path); Assertion.AssertNotNull ("FileContents not equal", tag.FileContents); Assertion.AssertEquals ("FileContents not set/returned", "N" + this.TAG_ENTRY1.Substring (1), tag.FileContents); Assertion.AssertEquals ("Filename not correct", this.TAG_FILE_NAME, tag.Filename); Assertion.AssertEquals ("Type not correct", Factory.FileType.Tag, tag.Type); ! Assertion.Assert ("IsMultiLined not correct", tag.IsMultiLined == false); } --- 72,88 ---- [Test] public void CreateTagTest () { ! String fullPath = ! Path.Combine (this.settings.Config.LocalPath, RELATIVE_PATH); ! Tag tag = new Tag(fullPath, ! this.TAG_ENTRY1); String cvsPath = Path.Combine (fullPath, "CVS"); ! Assertion.AssertNotNull ("Path not set/returned", tag.FullPath); ! Assertion.AssertEquals ("Path not equal", fullPath, tag.FullPath); Assertion.AssertNotNull ("FileContents not equal", tag.FileContents); Assertion.AssertEquals ("FileContents not set/returned", "N" + this.TAG_ENTRY1.Substring (1), tag.FileContents); Assertion.AssertEquals ("Filename not correct", this.TAG_FILE_NAME, tag.Filename); Assertion.AssertEquals ("Type not correct", Factory.FileType.Tag, tag.Type); ! Assertion.AssertEquals ("IsMultiLined not correct", false, tag.IsMultiLined); } |