* ResourceWriterTest.cs: In our new AddResource_Stream_Default test
store the resource file under Test/resources/, instead of the base
dir, so we avoid filling the dir with not needed files.
svn path=/trunk/mcs/; revision=159992
* ResourceSet.cs: Avoid duplicate argument checks. On 2.0 profile,
throw ObjectDisposedException when ResourceSet is disposed.
* RuntimeResourceSet.cs: On 2.0 profile, throw ObjectDisposedException
when ResourceSet is disposed.
* ResourceManagerTest.cs: Enabled and added ResourceSetType asserts.
Added test for disposed ResourceSet. Avoid using ExpectedException.
* ResourceSetTest.cs: Improved tests for ctor argument checks. Avoid
using ExpectedException.
svn path=/trunk/mcs/; revision=98387
* ResourceManagerTest.cs: Add test case for ResourceSetType which
shows that an internal type, not the basic ResourceSet, is being used
* ResourceSetTest.cs: New. Unit tests for ResourceSet
svn path=/trunk/mcs/; revision=97300
enum as a predefined type. Fixes bug #325223.
* ResourceWriterTest.cs: Enabled test for writing enum value on 2.0
profile.
svn path=/trunk/mcs/; revision=94016
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
Reworked basename to only throw ArgumentException if resource with
name ending on ".resources" does not actually exist. Fixes bug
#336283. Do not throw exception in GetStream since this is already
done in InternalGetResourceSet. In InternalGetResourceSet, do not
throw MissingManifestResourceException when culture is null. Fixed
MissingManifestResourceException message to match MS. When using
file-based ResourceManager, then also throw an exception when file
does not exist for neutral culture.
* ResourceManager.cs: Added tests for null argument checks. Added test
for GetStream with resource file that does not exist.
svn path=/trunk/mcs/; revision=88308
Added resourceSource field to store the actual type, which we need for
the namespace. Added CheckBaseName method to avoid code duplication.
Only check whether basename does not end in '.resources' on 1.0
profile. Fixed paramname of ArgumentNullExceptions to match MS.
Modified GetManifestResourceStreamNoCase to use resourceSource field
to construct manifest resource name. Modified GetStream to use
CurrentUICulture when culture is null. Fixed InternalGetResourceSet
to use invariant resources when culture is the neutral culture.
Code formatting.
* ResourceManagerTest.cs: Restore the original UI Culture on TearDown.
Added ctor tests. Added tests for CreateFileBasedResourceManager.
Added tests for GetObject, GetString and GetResourceFileName.
Improved tests for GetStream. Added test for IgnoreCase.
svn path=/trunk/mcs/; revision=85866
are released. Fixes test failures on Windows.
* ResourceWriterTest.cs: Added test for bug #82566.
* ResourceReaderTest.cs: Improved existing tests. Ensure all resources
are released. Fixed test failures on Windows.
svn path=/trunk/mcs/; revision=84800
* ResourceReader.cs : implemented GetResourceData(). Resources with
unresolvable types could still be parsed, so hold type names
instead of types.
* ResourceReaderTest.cs : added tests for GetResourceData()
svn path=/trunk/mcs/; revision=83761
Patch provided by Red Forks. Fixes bug #79976.
* ResourceReaderTest.cs: Added test for reading byte array.
No longer derive from Assertion class.
svn path=/trunk/mcs/; revision=70246
* ResourceReaderCas.cs: New. CAS unit tests for ResourceReader.
* ResourceReaderTest.cs: Changed filename to internal so the "normal"
tests case can be reused, with partial trust, by the CAS tests.
* ResourceSetCas.cs: : New. CAS unit tests for ResourceSet.
svn path=/trunk/mcs/; revision=42423
* ResourceReaderTest.cs: Un-ignored an old test case (probably fixed a
long time ago). Converted tests to NUnit 2.x format to be more
specific when checking exceptions.
svn path=/trunk/mcs/; revision=29530
* ResourceReaderTest.cs: Put it back the way it was, doesn't work on
.NET, and it works fine on both if you cd to the proper dir before
running these tests.
svn path=/trunk/mcs/; revision=15564
* ResourceReaderTest.cs: Add new file. This test is not done yet.
Wanted to save it in cvs for 'disaster recovery' purposes.
Just in case.
svn path=/trunk/mcs/; revision=2129