2002-08-02 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / Test / System / ChangeLog
1 2002-08-02  Nick Drochak  <ndrochak@gol.com>
2
3         * BufferTest.cs (TestBlockCopy): BlockCopy uses the number of bytes,
4         so hard-code some of that info into the test since sizeof() is a very
5         unsafe thing to do.
6
7 2002-07-31  Nick Drochak  <ndrochak@gol.com>
8
9         * BufferTest.cs: Fixed noisy compiler warnings about unused vars.
10
11 2002-07-22  Cesar Octavio Lopez Nataren  <cesar@ciencias.unam.mx>
12
13         * BufferTest.cs: Added this file to test the System.Buffer class 
14         implementation.
15
16 2002-07-17  Martin Baulig  <martin@gnome.org>
17
18         * ConvertTest.cs: Commented out line 456 which contains a non-printable
19         character which mcs does not like.  See also bug #27655.
20
21         * DecimalTest.cs, DecimanTest2.cs: Removed the `using S = System'.
22
23 2002-07-11  Nick Drochak  <ndrochak@gol.com>
24
25         * ArrayTest.cs: Disable a test for now.  Bugzilla'd this one.
26         * ConvertTest.cs: Make message unique for this mistaken duplicate.
27
28 2002-07-04  Nick Drochak  <ndrochak@gol.com>
29
30         * DateTimeTest.cs: Made tests pass on ms.net.  Well, they pass in
31         timezone JST.  Need to test in others.  Maybe I'll fly over to GMT
32         and see how they work.  Supposed to be eaiser there.
33
34 2002-07-04  Nick Drochak  <ndrochak@gol.com>
35
36         * ConvertTest.cs: Make the test generate the overflow exceptions on
37         mono on Linux.
38         * DecimalTest2.cs: Report exception thrown during subtraction.
39
40 2002-07-03  Nick Drochak  <ndrochak@gol.com>
41
42         * DoubleTest.cs: Fix some Assert/AssertEquals usage.
43
44 2002-07-03  Nick Drochak  <ndrochak@gol.com>
45
46         * ArrayTest.cs: Re-enable some tests.  Let's see what's broken still.
47
48 2002-06-20  Nick Drochak  <ndrochak@gol.com>
49
50         * DecimalTest2.cs: Make tests pass against ms.net.
51
52 2002-06-19  Nick Drochak  <ndrochak@gol.com>
53
54         * AllTests.cs: Add missing test: DecimalTest2
55         * DecimalTest2.cs: Convert Console.Writeline() into a Fail()
56
57 2002/06/14  Nick Drochak <ndrochak@gol.com>
58
59         * Int64Test.cs: Make currency symbol test more culturally sensitive.
60
61 2002-06-14  Nick Drochak  <ndrochak@gol.com>
62
63         * DateTimeTest.cs: Make some of the tests a bit more timezone neutral.
64
65 2002-06-12   Nick Drochak  <ndrochak@gol.com>
66
67         * ConvertTest.cs: Punt bug in DateTime.Parse() over to that test.
68         * DateTimeTest.cs: Add test for date format of yyyy-mm-dd which mono
69         doesn't handle automagically like ms.net does.  This smells like a 
70         LAMESPEC, however.
71
72 2002/06/12  Nick Drochak <ndrochak@gol.com>
73
74         * RandomTest.cs: Exercise Next(min,max) a little more, especially
75         boundary conditions.
76
77 2002-06-11  Nick Drochak  <ndrochak@gol.com>
78
79         * StringTest.cs: Check for "end of string" conditions for IndexOf() and
80         Substring().
81
82 2002-06-11  Nick Drochak  <ndrochak@gol.com>
83
84         * DoubleTest.cs: Add some more detail to failure message.
85         * Int64Test.cs: Add some details, and fix a copy-paste error.
86         * UInt32Test.cs: Fix currency symbol/culture issues
87         * UInt64Test.cs: Fix currency symbol/culture issues
88
89 2002/06/11  Nick Drochak <ndrochak@gol.com>
90
91         * DateTimeTest.cs: Remove RunTest override and put culture manipulation
92         in SetUp and TearDown like the other tests.
93         * TimeZoneTest.cs: Same.
94
95 2002-06-11  Nick Drochak  <ndrochak@gol.com>
96
97         * Int64Test.cs: Set the culture to en-US for testing.
98         * MathTest.cs: mono is more precise in Log2, so change test to compare
99         values within a slightly larger margin of error.
100
101 2002/06/10  Nick Drochak <ndrochak@gol.com>
102
103         * DecimalTest.cs: More culture indepenence. Fixes the problems we were
104         having with tests failing against MS.NET.
105         * Int64Test.cs: Same plus some formatting fixes.
106         * RandomTest.cs: Split Assert into two to figure out which one part is
107         failing.
108
109 2002-06-09  Lawrence Pit  <loz@cable.a2000.nl>\r
110 \r
111         * DateTimeTest.cs: Making tests culture independent\r
112 \r
113 2002-06-07  Nick Drochak  <ndrochak@gol.com>
114
115         * DecimalTest.cs: Catch unexpected exception and report it.
116
117 2002/06/04  Nick Drochak <ndrochak@gol.com>
118
119         * ByteTest.cs: Fix currency constant that we use for the expected
120         value.  Try to be more culture-diverse.
121
122 2002/06/03  Nick Drochak <ndrochak@gol.com>
123
124         * DecimalTest.cs: Fix some errors that were showing up when run against
125         ms.net.
126
127 2002-06-02  Nick Drochak  <ndrochak@gol.com>
128
129         * ConvertTest.cs: Use en-US culture since that's all we support in our
130         corlib right now. Change constants accordingly.  Also added a bunch of
131         try-catch blocks to show which Assert is failing.
132
133 2002-06-02  Duncan Mak  <duncan@ximian.com>
134
135         * ConvertTest.cs (TestToDecimal): Fixed typo in case #H11.
136
137 2002-06-01  Nick Drochak  <ndrochak@gol.com>
138
139         * BugTest.cs: Remove, bug fixed.  Yay!
140         * AllTests.cs: Remove BugTest from suite.
141
142 2002-05-31  Nick Drochak  <ndrochak@gol.com>
143
144         * BugTest.cs: Small file to show NullReferenceException bug
145         * AllTests.cs: Include BugTest.cs in the suite.
146
147 2002-05-29  Nick Drochak  <ndrochak@gol.com>
148
149         * DecimalTest.cs: Use AssertEquals to get nice error report, and mark
150         each one with a unique message string so we know which one failed.
151
152 2002-05-29  Lawrence Pit  <loz@cable.a2000.nl>\r
153 \r
154         * DateTimeTest.cs: Added tests M01 to M03 to TestParseExact, \r
155         passing typeof this class as arg in property Suite.\r
156 \r
157 2002-05-22  Lawrence Pit  <loz@cable.a2000.nl>\r
158 \r
159         * ConsoleTest.cs: Added test writing null.\r
160 \r
161 2002-05-21  Nick Drochak  <ndrochak@gol.com>
162
163         * MathTest.cs:
164                 (TestPow): Add try-catch to determine where we are throwing.
165                 (TestLog): Re-enable failing test
166                 (TestLog2): same although this test still fails on mono. Not
167                 sure what the proper value      to use here. It works on MS.NET
168
169 2002-05-21  Nick Drochak  <ndrochak@gol.com>
170
171         * MathTest.cs: Better reporting of failures
172         * Int64Test.cs: Add try-catch to determine where we are throwing.
173
174 2002-05-20  Nick Drochak  <ndrochak@gol.com>
175
176         * AttributeTest.cs (TestGetCustomAttribute): Add try-catch to find out
177         which assert is failing.
178
179 2002-05-19  Martin Baulig  <martin@gnome.org>
180
181         * MartinTests.cs: Removed.
182
183 2002-05-14  Nick Drochak  <ndrochak@gol.com>
184
185         * StringTest.cs: A couple more tests
186
187 2002-05-07  Nick Drochak  <ndrochak@gol.com>
188
189         * ExceptionTest.cs: New File. Provided by Linus Upson.
190
191 2002-05-05  Lawrence Pit  <loz@cable.a2000.nl>\r
192 \r
193         * StringTest.cs: Added test for replace function\r
194 \r
195 2002-04-30  Nick Drochak  <ndrochak@gol.com>
196
197         * UInt32Test.cs: More verbose on unexepected exception to eliminate
198         compiler warning.
199
200 2002-04-28  Nick Drochak  <ndrochak@gol.com>
201
202         * StringTest.cs: Mark Assert() messages with unique identifiers.
203         * DecimalTest2.cs: Write out more info in the Report method.  Need this
204         to determine why op_Subtraction() is failing in the next line.
205         * MathTest.cs:
206         * DoubleTest.cs:
207         * UInt32Test.cs: Add try-catch blocks to find out where the test is
208         failing.
209
210 2002-04-28  Nick Drochak  <ndrochak@gol.com>
211
212         * ArrayTest.cs (TestIList_IndexOf): Display exception details if we get
213         an unexpected one.
214
215 2002/04/24  Nick Drochak <ndrochak@gol.com>
216
217         * IntegerFormatterTest.cs: Remove Console.WriteLines and use 
218         AssertEquals() instead.
219
220 2002-04-22  Nick Drochak  <ndrochak@gol.com>
221
222         * StringTest.cs: Add unique markers to Assert messages.
223
224 2002-04-09  Nick Drochak  <ndrochak@gol.com>
225
226         * ArrayTest.cs: Remove BinarySearch test on unsorted arrays. The
227         behavior is undefined if the array isn't sorted.
228
229 2002/04/09  Nick Drochak <ndrochak@gol.com>
230
231         * DecimalTest.cs: Use AssertEquals() for better diagnostic message.
232
233 2002-04-09  Nick Drochak  <ndrochak@gol.com>
234
235         * ByteTest.cs: Use AssertEquals() for better diagnostic message.
236
237 2002-04-08  Nick Drochak  <ndrochak@gol.com>
238
239         * EnumTest.cs: Add a few tests for differently underlying types and
240         the [Flags] attribute to test ToString().
241
242 2002-04-08  Nick Drochak  <ndrochak@gol.com>
243
244         * EnumTest.cs: Add test for ToString for the case where the enum
245         has [Flags] on it, and a mask value is used.
246
247 2002-04-04  Nick Drochak  <ndrochak@gol.com>
248
249         * EnumTest.cs: Change one Assert() message string so the two are 
250         unique. And clean up exception catching logic.
251
252 2002/03/28  Nick Drochak <ndrochak@gol.com>
253
254         * IntegerFormatterTest.cs: Eliminate warnings about unused exception
255         variables.
256
257 2002-03-28  Nick Drochak  <ndrochak@gol.com>
258
259         * EnumTest.cs(TestFormat): Use Fail() instead of AssertEquals() in
260         try-catch blocks. Add test to check if correct exception is being 
261         thrown.
262
263 2002/03/18  Nick Drochak <ndrochak@gol.com>
264
265         * ByteTest.cs:
266         * Int64Test.cs:
267         * SByteTest.cs: Do not hard code the "$" as the currency symbol to
268         use for Parse tests. This isn not really the fix we need. These
269         number formats vary wildly depending on the culture the system
270         runs with.  We need a much better strategy here for testing this.
271         * Int32Test.cs: Use #if NOTYET-#endif to disable a test.  This removes
272         an annoying compile warning.
273
274 2002-03-18  Nick Drochak  <ndrochak@gol.com>
275
276         * DoubleTest.cs:
277         * EnumTest.cs: Add unique identifier to Assert()'s. Needed to find
278         which one was faling on Linux.
279
280 2002-03-12  Nick Drochak  <ndrochak@gol.com>
281
282         * ArrayTest.cs: Add tests for IList methods and for enumerator on
283         an array with non-zero lower bounds.
284
285 2002-03-09  Nick Drochak  <ndrochak@gol.com>
286
287         * ArrayTest.cs: Enable the enumerator test and include test for
288         Multi-dimensional array enumerator.  Also include test for
289         mutation _not_ invalidating the enumerator.
290
291 2002-03-09  Martin Baulig  <martin@gnome.org>
292
293         * Int16Test.cs, Int32Tests.cs, UInt16Tests.cs: Use "en-US" culture and
294         don't let the user override.
295
296         * Int32Tests.cs: Cleanup. Use unique names in Assert()s, use AssertEquals()
297         where appropriate etc.
298
299 2002-03-08  Martin Baulig  <martin@gnome.org>
300
301         * StringTest.cs: More String.Split tests.
302
303 2002-03-07  Martin Baulig  <martin@gnome.org>
304
305         * StringTest.cs: Added a few more tests for the bug fixes I just
306         committed to String.cs.
307
308 2002-03-07  Martin Baulig  <martin@gnome.org>
309
310         * ArrayTest.cs: Fixed the FIXME in test #E05.
311
312 2002-03-06  Duco Fijma  <duco@lorentz.xs4all.nl>
313         * CharEnumeratorTest.cs: made test regarding out-of-bounds checking
314         a bit stronger (new failures fixed in CharEnumerator.cs).
315
316 2002-03-06  Martin Baulig  <martin@gnome.org>
317
318         * ArrayTest.cs (TestSetValue4): Added testcases #M94-#M96 for Array.Copy.
319
320         * ArrayTest.cs (TestCopyTo): Added testcases #F10-#F13 for arrays with
321         non-zero lower bounds.
322
323         * ArrayTest.cs (TestCopyTo): Added test for copying an empty array
324         to an empty array.
325
326 2002-03-06  Martin Baulig  <martin@gnome.org>
327
328         * ArrayTest.cs: Use unique labels for all the tests.
329         (TestSetValue4): A big new testcase.
330
331 2002-03-06  Nick Drochak  <ndrochak@gol.com>\r
332 \r
333         * VersionTest.cs: Fix for mscorlib behavior vs. docs. CompareTo(null)\r
334         is legal.\r
335         * UInt16Test.cs:\r
336         * UInt32Test.cs:\r
337         * UInt64Test.cs: Use NumberFormatInfo.InvariantInfo.CurrencySymbol\r
338         where "$" was used. Should help suppress false negatives on systems\r
339         where "$" is not the currency symbol.\r
340 \r
341 2002-03-04  Duco Fijma  <duco@lorentz.xs4all.nl>
342         * VersionTest.cs: created test cases for System.Version
343
344 2002-03-03  Duco Fijma  <duco@lorentz.xs4all.nl>
345         * CharEnumeratorTest.cs: completed the test cases
346
347 2002-03-03  Nick Drochak  <ndrochak@gol.com>\r
348 \r
349         * DateTimeTest.cs: make static member non-static -- wouldn't work on \r
350         Windows if it was static. Doesn't _need_ to be static anyway.\r
351 \r
352 2002-03-01  Duco Fijma  <duco@lorentz.xs4all.nl>
353         * AttributeTest.cs: created, far from complete. 
354         * CharEnumeratorTest.cs: created. Contains just the basic case.
355         * AllTests.cs: added the two new tests above
356
357 2002-03-01  Duco Fijma  <duco@lorentz.xs4all.nl>
358         * BitConverterTest.cs: added one test for bug fix made to BitConverter
359         * class.
360
361 2002-03-01  Martin Baulig  <martin@gnome.org>
362
363         * ArrayTest.cs: Commented out a few bits which are not yet implemented and
364         marked them with FIXME's.
365
366         * DecimalTest.cs, DecimalTest2.cs: Added zero-arg constructors.
367
368         * MartinTests.cs: Enabled ArrayTests.cs.
369
370 2002-03-01  Duco Fijma <duco@lorentz.xs4all.nl>
371
372         * BitConverterTest.cs: completed test cases
373
374 2002-03-01  Martin Baulig  <martin@gnome.org>
375
376         * MartinTests.cs: 15 tests currently work on Linux, call them all and
377         provide comments for the non-working tests.
378
379 2002-02-28  Duncan Mak  <duncan@ximian.com>
380
381         * MathTest.cs: Committed for Jon Guymon <gnarg@slackworks.com>.
382
383 2002-02-28  Martin Baulig  <martin@gnome.org>
384
385         * String.cs (TestCompare): Added a few tests.
386         (TestFormat): Please don't compare two strings with Assert (... == ...),
387         use AssertEquals instead - this gives you a better idea what went wrong
388         if the test fails.
389
390 2002-02-28  Nick Drochak  <ndrochak@gol.com>
391
392         * BitConverterTest.cs: Test was trying to catch the wrong Exception.
393         The MSDN docs clearly say ArgumentOutOfRangeException, but that's
394         not what get's thrown.
395
396         * DoubleTest.cs: Get working against mscorlib reference.
397
398 2002-02-27  Duco Fijma <duco@lorentz.xs4all.nl>
399         * GuidTest.cs: changed to reflect new meaning of Guid.ToString("")
400         and Guid.ToString(null)
401
402 2002-02-26  Martin Baulig  <martin@gnome.org>
403
404         * MartinTests.cs: New file. This contains all the test which already
405         work on Linux.
406
407         * String.cs: Added two testcases to TestTrim(), TestTrimStart() and
408         TestTrimEnd().
409
410 2002-02-26  Martin Baulig  <martin@gnome.org>
411
412         * DateTimeTest.cs: Added testcases for the parsers. Use the invariant
413         culture to run this test suite.
414
415         * TimeZoneTest.cs: Use the invariant culture to run this test suite.
416
417 2002-02-26  Duco Fijma <duco@lorentz.xs4all>
418         * TimeSpanTest.cs: added test from TimeSpan.FromMilliseconds
419
420 2002-02-26  Martin Baulig  <martin@gnome.org>
421
422         * DateTimeTest.cs: New test.
423
424         * TimeZoneTest.cs: New test.
425
426 2002-02-25  Duco Fijma <duco@lorentz.xs4all.nl>
427         * GuidTest.cs: all methods of System.Guid are now covered
428         * BitConverterTest.cs: created, not yet complete
429
430 2002-02-21  Duco Fijma <duco@lorentz.xs4all.nl>
431         * GuidTest.cs: changed according to fix in System.Guid
432
433 2002-02-20  Nick Drochak  <ndrochak@gol.com>\r
434 \r
435         * Int64Test.cs: One array was giving us trouble.  Not sure why, but\r
436         it's related to the number of elements in an Array.  For short Arrays\r
437         the compiler doesn't use the PrivateImplmentationDetails struct,\r
438         but for longer ones it does.  That's when our corlib fails. I paired\r
439         down the array for now.\r
440 \r
441 2002-02-19  Duco Fijma <duco@lorentz.xs4all.nl>\r
442         * GuidTest.cs: added a few cases\r
443 \r
444 2002-02-18  Nick Drochak  <ndrochak@gol.com>\r
445 \r
446         * GuidTest.cs: Fix compile error.  Needed to cast the null in the call to\r
447         constructor to avoid ambiguity.\r
448 \r
449 2002-02-11  Nick Drochak  <ndrochak@gol.com>\r
450 \r
451         * Int64Test.cs: Various fixes to make tests work against the ms corlib.\r
452         Currency Symbol tests seem to be system dependant.  Not sure if this\r
453         will work on other systems, so please test it if you can. The most\r
454         disturbing one is negative numbers.  Should they be (n) or -n ?\r
455 \r
456 2002-02-10  Nick Drochak  <ndrochak@gol.com>\r
457 \r
458         * AllTests.cs: Add Int64Test to the Suite\r
459         * Int64Test.cs: Change static member to instance member. This was\r
460         causing NUnitConsole some grief.  Should be instance member anyway.\r
461 \r
462 2002-02-09  Nick Drochak  <ndrochak@gol.com>\r
463 \r
464         * ByteTest.cs:\r
465         * Int16Test.cs:\r
466         * Int32Test.cs:\r
467         * SByteTest.cs:\r
468         * UInt16Test.cs:\r
469         * UInt32Test.cs:\r
470         * UInt64Test.cs: Fixed tests where a "$" was hard coded.  Change it to\r
471         use NumberFormatInfo.CurrentInfo.CurrencySymbol.  Also used\r
472         NumberFormatInfo.InvariantInfo.CurrencySymbol where appropriate. These\r
473         tests all pass now with mscorlib.\r
474 \r
475 2002-01-06  Nick Drochak  <ndrochak@gol.com>\r
476 \r
477         * ResolveEventArgsTest.cs: New test.\r
478         * AllTests.cs: Added new test to suite.\r
479 \r
480 2001-12-27  Nick Drochak <ndrochak@gol.com>\r
481 \r
482         * UInt32Test.cs: Added messages to Asserts()'s to find out which one was faliing.\r
483 \r
484 2001-12-21  Miguel de Icaza  <miguel@ximian.com>\r
485 \r
486         * UInt32Test.cs: Added tests for UInt32.Parse.\r
487 \r
488         * Int32Test.cs: Added tests for Int32.Parse for various cases.\r
489 \r
490 2001-12-08  Nick Drochak  <ndrochak@gol.com>\r
491 \r
492         * ByteTest.cs: Added messages to Assert()'s to find out which one was failing.\r
493 \r
494 2001-11-28  Nick Drochak <ndrochak@gol.com>\r
495 \r
496         * Int16Test.cs Int32Test.cs SByteTest.cs: Surgically removed tests that rely on culture of system.  These need to be crafted a bit differently.\r
497 \r
498 2001-11-27  Nick Drochak  <ndrochak@gol.com>\r
499 \r
500         * SByteTest.cs: Add messages to Assert()'s so we can tell where the tests fail.\r
501 \r
502 2002-02-21  Bob Doan  <bdoan@sicompos.com>\r
503 \r
504         * BooleanTest.cs: Added New test suite\r
505         * AllTests.cs: Added new Boolean test to suite.\r
506 \r
507 2002-02-24  Bob Doan  <bdoan@sicompos.com>\r
508 \r
509         * BooleanTest.cs: Use correct argument order in AssertEquals\r
510         * AllTests.cs: Added new Double test to suite.\r
511         * DoubleTest.cs: Add new test suite\r
512 \r
513 2002-02-24  Bob Doan  <bdoan@sicompos.com>\r
514 \r
515         * DoubleTest.cs: Added parse tests to Double test suite, removed GetHashCodeTests\r