[Mono-bugs] [Bug 362117] New: MonthCalendar' s SelectionRange object default constructor wrong end datetime

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 15 06:24:58 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=362117


           Summary: MonthCalendar's SelectionRange object default
                    constructor wrong end datetime
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Class System.Windows.Forms.SelectionRange.  The following test cases fails on
Mono, and pass on MSFT

   [Test]
   public void DefaultConstructor()
   {
       SelectionRange sr = new SelectionRange ();
       Assert.AreEqual (DateTime.MinValue, sr.Start, "Start");
       // "9999-12-31 00:00:00", note not 23:59:59.
        Assert.AreEqual (DateTime.MaxValue.Date, sr.End, "End");
   }

   [Test]
   public void DefaultConstructor_ToString()
   {
       SelectionRange sr = new SelectionRange ();
       // "9999-12-31 00:00:00", note not 23:59:59.
        Assert.AreEqual ("SelectionRange: Start: 01/01/0001 00:00:00, End:
31/12/9999 00:00:00", 
           sr.ToString (), "ToString");
   }

This is somewhat at odds with MSDN, but then it is obviously talking garbage:
"The Start and End values are set to a null reference [...]". Null structs,
not!


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list