From: Nicklas N. <ex...@us...> - 2004-11-01 21:24:23
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/FileSystem In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25998/src/ICSharpCode.Tests/SharpCvsLib/FileSystem Modified Files: EntryTest.cs Log Message: * Replaced usage of String.Empty in comparisons with .Length == 0 to enhance performance (FxCop rule) * Excluded a few FxCop rules that did not apply. Index: EntryTest.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode.Tests/SharpCvsLib/FileSystem/EntryTest.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** EntryTest.cs 31 Oct 2004 16:35:43 -0000 1.17 --- EntryTest.cs 1 Nov 2004 21:23:28 -0000 1.18 *************** *** 151,156 **** Assert.AreEqual ("Tue May 13 05:10:17 2003", entry.Date); Assert.IsTrue (entry.Conflict == null); ! Assert.IsTrue (entry.Options.Equals ("")); ! Assert.IsTrue (entry.Tag.Equals ("")); Assert.IsTrue (entry.TimeStamp.Day == 13); --- 151,156 ---- Assert.AreEqual ("Tue May 13 05:10:17 2003", entry.Date); Assert.IsTrue (entry.Conflict == null); ! Assert.IsTrue (entry.Options.Length == 0); ! Assert.IsTrue (entry.Tag.Length == 0); Assert.IsTrue (entry.TimeStamp.Day == 13); *************** *** 187,192 **** Assert.AreEqual ("03 Jan 2003 04:07:36 -0000", entry.Date); Assert.AreEqual (null, entry.Conflict); ! Assert.AreEqual ("", entry.Options); ! Assert.AreEqual ("", entry.Tag); Assert.AreEqual (3, entry.TimeStamp.Day); --- 187,192 ---- Assert.AreEqual ("03 Jan 2003 04:07:36 -0000", entry.Date); Assert.AreEqual (null, entry.Conflict); ! Assert.AreEqual (0, entry.Options.Length); ! Assert.AreEqual (0, entry.Tag.Length); Assert.AreEqual (3, entry.TimeStamp.Day); |