[Mono-dev] : DateTime.Parse patch
Sebastien Pouliot
sebastien.pouliot at gmail.com
Thu Aug 16 08:00:55 EDT 2007
Hello Eyal,
Quick questions:
- Why is there a change to the unit tests ?
- Is it a bad test (not working on MS) ?
Thanks
Sebastien
On Wed, 2007-08-15 at 07:03 -0700, Eyal Alaluf wrote:
> Index: Test/System/DateTimeTest.cs
> ===================================================================
> --- Test/System/DateTimeTest.cs (revision 84140)
> +++ Test/System/DateTimeTest.cs (working copy)
> @@ -1540,7 +1540,7 @@
> Thread.CurrentThread.CurrentCulture = new
> CultureInfo ("ja-JP");
> string y = string.Format ("{0}-{1}-{2} {3}",
> DateTime.Now.Year.ToString (),
> "11", "29", "06:34");
> - DateTime date = DateTime.ParseExact (y,
> "yyyy-MMM-dd hh:mm", null);
> + DateTime date = DateTime.ParseExact (y,
> "yyyy-MM-dd hh:mm", null);
> Assert.AreEqual (DateTime.Now.Year, date.Year,
> "#1");
> Assert.AreEqual (11, date.Month, "#2");
> Assert.AreEqual (29, date.Day, "#3");
>
--
Sebastien Pouliot <sebastien at ximian.com>
Blog: http://pages.infinit.net/ctech/
More information about the Mono-devel-list
mailing list