CheckDateRange() public static method

public static CheckDateRange ( string fromDate, string toDate ) : void
fromDate string
toDate string
return void
 public void testValidDateRanges()
 {
     DateUtils.CheckDateRange("20070102", "20080102");
     DateUtils.CheckDateRange("20070102.012345", "20080102");
     DateUtils.CheckDateRange("20070102", "20080102.012345");
     DateUtils.CheckDateRange("20070102.012345", "20080102.012345");
 }
 public void testInvalidDateRange_startEqualsEnd()
 {
     DateUtils.CheckDateRange("20070102", "20070102"); //same date
 }
 public void testInvalidDateRange_startBeforeEnd()
 {
     DateUtils.CheckDateRange("20070103", "20070102");
 }
 public void testInvalidDateRange_starttimeBeforeEnd()
 {
     DateUtils.CheckDateRange("20070102.022345", "20070102.012345");
 }
 public void testIsValidDateRangesBadTo()
 {
     DateUtils.CheckDateRange("20070102", "abcd");
 }
 public void testIsValidDateRangesBadFrom()
 {
     DateUtils.CheckDateRange("abcd", "20070102");
 }
 public void testIsValidDateRangesNull2ndArg()
 {
     DateUtils.CheckDateRange("20070102", null);
 }
 public void testIsValidDateRangesNull1stArg()
 {
     DateUtils.CheckDateRange(null, "20070102");
 }