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: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs