* ResourceWriterTest.cs: Added ctor tests. Added tests for AddResource
authorGert Driesen <drieseng@users.sourceforge.net>
Sat, 10 Nov 2007 19:10:06 +0000 (19:10 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Sat, 10 Nov 2007 19:10:06 +0000 (19:10 -0000)
commitd5dc02f0268565d0594045097f7df84a689c3bb8
tree16f5f51782e903429448b49200ed895fbb3d3d32
parenta8bf18fc0a594bc264926adee2d866e4786d8fbe
* ResourceWriterTest.cs: Added ctor tests. Added tests for AddResource
overloads. Added test for argument null checks. Added test for bug
#339074. Added test for invoking Generate () multiple times.
* ResourceWriter.cs: On 2.0 profile, use case-insensitive SortedList.
Changed exception messages and params to match MS. Allow null values
in AddResource overloads. In Dispose (bool), also generate resources
(header) if no resources were added. Fixes bug #339074. When Generate
is done, reset resources to null to prevent further editing.  This
also avoids the need for a separate bool to indicate whether generate
was already invoked. Code formatting.

svn path=/trunk/mcs/; revision=89412
mcs/class/corlib/System.Resources/ChangeLog
mcs/class/corlib/System.Resources/ResourceWriter.cs
mcs/class/corlib/Test/System.Resources/ChangeLog
mcs/class/corlib/Test/System.Resources/ResourceWriterTest.cs