* CultureInfo.cs NumberFormatInfo.cs DateTimeFormatInfo.cs TextInfo.cs: Make
sure the components of a read-only culture object are read-only as well.
svn path=/trunk/mcs/; revision=92326
* CultureInfo.cs: Added internal CreateCulture method, which is used
by the runtime to creating CultureInfo instances for AssemblyName.
* AssemblyNameTest.cs: Improved culture test to cover bug #347174.
* Descriptors/mscorlib.xml: Preserve all for CultureInfo to prevent
linker from removing CreateCulture method that is only used by the
runtime.
svn path=/trunk/mcs/; revision=91978
* DateTimeFormatInfo.cs: minimal implementation of
AbbreviatedMonthGenitiveNames, MonthGenitiveNames and
NativeCalendar name properties.
svn path=/trunk/mcs/; revision=85423
* HijriCalendar.cs ThaiBuddhistCalendar.cs HebrewCalendar.cs
GregorianCalendar.cs KoreanCalendar.cs JulianCalendar.cs :
implemented ToFourDigitYear(), actually base implementation mostly
works as is.
* CalendarTest.cs : enabled ToFourDigitYear() test from 5 years ago.
and added some more ToFourDigitYear() tests.
svn path=/trunk/mcs/; revision=81688
* CultureInfo.cs : implemented GetConsoleFallbackUICulture and
CultureTypes (it is awful indeed). Fix ComVisibles.
implemented InstalledUICulture, as what matches the best I think is
the one for BootstrapCultureID.
svn path=/trunk/mcs/; revision=81630
* FileSystemInfoTest.cs: Restore original CurrentCulture on teardown.
Removed stray tabs. Code formatting.
* FileTest.cs: Restore original CurrentCulture on teardown. Removed
stray tabs. Changes spaces to tabs.
* ThreadTest.cs: Added tests for bug #81930.
* CultureInfoTest.cs: Added exception tests when invoking NumberFormat
or DateTimeFormat on a neutral culture. Added tests for bug #81930.
No longer derive from deprecated Assertion class. Added tests for
GetCultureInfo (2.0).
* ArrayTest.cs: Added test for bug #81941.
* ByteTest.cs: Restore original CurrentCulture in teardown.
* DecimalFormatterTest.cs: Restore original CurrentCulture in teardown.
Code formatting.
* DecimalTest.cs: Code formatting.
* DoubleFormatterTest.cs: Test relies on specific culture, so set it
up here. This worked before since the CurrentCulture was set in another
TestFixture, and the original one was not restored.
* FloatingPointFormatterTest.cs: Same.
* NumberFormatterTest.cs: Same. Removed stray tabs and fixes code
formatting.
* SingleFormatterTest.cs: Restore original culture on teardown. Code
formatting.
* SingleTest.cs: Same.
* StringComparerTest.cs: Restore original culture on teardown.
svn path=/trunk/mcs/; revision=80626
2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* corlib_test.dll.sources : added DateTimeFormatInfoTest.cs.
In Test/System.Globalization:
2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* DateTimeFormatInfo.cs: Added EraName.
In System.Globalization:
2007-05-31 Rolf Bjarne Kvinge <[email protected]>
* GregorianCalendar.cs: Change era names from C.E./Common Era
to AD/A.D.
* DateTimeFormatInfo.cs: GetEra: search the abbreviated era names
as well for the era, and return the era, not the index of the era
in the array.
svn path=/trunk/mcs/; revision=78435
* Calendar.cs DateTimeFormatInfo.cs : 2.0 API fixes.
* CalendricalCalculations.cs : fixed AddMonth() and AddYears() to
consider that the max days in the target month (for AddYears()
leap year month could matter). Fixed bug #81783.
* CalendarTest.cs : test for bug #81783 and AddYears() for leap year
(similar issue).
svn path=/trunk/mcs/; revision=78429
* DateTime.cs : added support for 'K'.
* DateTimeFormatInfo.cs : added roundtrip pattern (only in 2.0).
* DateTimeTest.cs : test for 'o' and 'K'.
svn path=/trunk/mcs/; revision=77579
* RegionInfo.cs, CultureInfo.cs : in 2.0 RegionInfo could be created
from locale name. To support that, retrieve CultureInfo from name
and use its Territory name if exists.
RegionInfo.Equals() still uses lcid, but hash code is based on
region ID. Added GeoId, which represents unique region ID (which
is returned in 1.x GetHashCode()).
* RegionInfoTest.cs : new tests.
* corlib_test.dll.sources : added RegionInfoTest.cs.
svn path=/trunk/mcs/; revision=77408
* Calendar.cs, HijriCalendar.cs, ThaiBuddhistCalendar.cs,
HebrewCalendar.cs, GregorianCalendar.cs, KoreanCalendar.cs,
JulianCalendar.cs, PersianCalendar.cs:
more serialization fixes. the M_TwoDigitYearMax field we use
appears to be called twoDigitYearMax in MS.NET. rename it (and
fix all the Calendar subclasses to use this naming). Likewise
with is_readonly (MS calls it m_isReadOnly).
Also, the m_currentEraValue field I had originally placed in
GregorianCalendar appears to be in Calendar (as running
nunit-2.2.8-2.0 shows.)
In GregorianCalendar, rename the M_CalendarType field to m_type
and remove the extra field I added.
The previous fix got nunit 2.4-2.0 running. This change gets
versions 2.2.8 and 2.4 of nunit running against both 1.1 and 2.0
profiles.
svn path=/trunk/mcs/; revision=71706
[ these fix nunit built with MS .net 2.0, running on mono. nunit
apparently stores all manner of things in its resources ]
* NumberFormatInfo.cs: add unused nativeDigits and
digitSubstitution fields that MS serializes.
* DateTimeFormatInfo.cs: serialization fixes. MS apparently
stores (and serializes) a couple of fields as ints, but exposes
them to programmers as Enum's.
* CompareInfo.cs: add unused m_name field that MS serializes.
* GregorianCalendar.cs: add a couple of unused fields that MS serializes.
svn path=/trunk/mcs/; revision=71620
* CompareInfo.cs : there was a test which raises assertion failure
if there isn't paramName for ArgumentException. Quite odd one.
svn path=/trunk/mcs/; revision=71449
* DateTimeFormatInfo.cs: Add support for shortest day names.
Notice that there is no support in the runtime to actually load
this information from any place. So they are all english values.
svn path=/trunk/mcs/; revision=70945
* CompareInfo.cs : GetSortKey() does not allow Ordinal and
OrdinalIgnoreCase in 2.0 (shuold be also prohibited in 1.x BTW).
svn path=/trunk/mcs/; revision=70628
* SimpleCollator.cs : added IndexOf() implementation for Ordinal
and OrdinalIgnoreCase, though Ordinal version is not used (since
it is slower than icall).
* CompareInfo.cs : for OrdinalIgnoreCase, IndexOf() and LastIndexOf()
will use managed version (icalls for them are case sensitive).
Removed MonoTODOs.
* CompareInfoTest.cs : added tests for OrdinalIgnoreCase versions
of IndexOf() and LastIndexOf(). Added Ordinal LastIndexOf() tests.
svn path=/trunk/mcs/; revision=70037
* DateTime.cs :
use new internal clone-less DateTimeFormatInfo members.
* DateTimeFormatInfo.cs : added some internal clone-less versions of
string[] properties and methods.
svn path=/trunk/mcs/; revision=68812
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
* CompareInfo.cs: Cache full UseManagedCollation value;
* CultureInfo.cs (Parent): Add caching to avoid re-creating culture info
every time when the property is used.
* TextInfo.cs: Removed unused field.
svn path=/trunk/mcs/; revision=67623