From: Clayton H. <dr...@us...> - 2005-03-30 05:46:43
|
Update of /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode/SharpCvsLib/Assertions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17044/src/ICSharpCode/SharpCvsLib/Assertions Modified Files: Assert.cs Log Message: Fixed bug in commit. Also simplified the way that Entries are loaded/ saved. Instead of going through a manager the Entries.Load and Entries.Save methods can be used to load and save the Entries file. Index: Assert.cs =================================================================== RCS file: /cvsroot/sharpcvslib/sharpcvslib/src/ICSharpCode/SharpCvsLib/Assertions/Assert.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Assert.cs 12 Feb 2005 06:39:32 -0000 1.1 --- Assert.cs 30 Mar 2005 05:46:03 -0000 1.2 *************** *** 49,52 **** --- 49,60 ---- } + public static void GreaterThanEqual(long num1, long num2) { + if (num1 >= num2) { + return; + } + throw new AssertionException("{0} should be greater than or equal {1}", + num1, num2); + } + public static void Equal(object obj1, object obj2) { if (obj1.GetType() == obj2.GetType()) { |