Commit Graph
16 Commits
Author SHA1 Message Date
Marek Safar 762b050917 Merge tests from mobile branch 2013-02-26 16:28:36 +01:00
Marek Safar f0f4f4ae51 More mobile tests update 2013-02-14 13:06:49 +01:00
Marek Safar d6af35c68f Fix more mobile tests 2013-02-12 20:02:07 +01:00
Marek Safar 7539a97bac Remove NET_2_0 2011-09-06 11:58:59 +01:00
Zoltan Varga 0acf9469fb Fix warnings.
svn path=/trunk/mcs/; revision=155701
2010-04-19 08:41:42 +00:00
Gert Driesen 9c2eeebe7e * ResourceManager.cs: Default to RuntimeResourceSet for all ctors.
* 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
2008-03-15 12:41:37 +00:00
Sebastien Pouliot 8d9c1b77bb 2008-03-04 Sebastien Pouliot <[email protected]>
* 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
2008-03-04 13:47:20 +00:00
Gert Driesen 23d32e135d * ResourceManager.cs: Removed temporary workaround for bug #43567.
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
2007-10-27 15:32:24 +00:00
Gert Driesen 53fbc5fb1a * ResourceManager.cs: BaseName(Field) should return only the name.
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
2007-09-17 10:38:08 +00:00
Gert Driesen 462b69a5e5 * ResourceManagerTest.cs: Improved existing tests. Ensure all resources
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
2007-08-24 11:25:36 +00:00
Atsushi Eno c98ee48759 2007-05-28 Atsushi Enomoto <[email protected]>
* IResourceWriter.cs NeutralResourcesLanguageAttribute.cs
	  SatelliteContractVersionAttribute.cs ResourceManager.cs
	  IResourceReader.cs ResourceSet.cs ResourceWriter.cs
	  ResourceReader.cs UltimateResourceFallbackLocation.cs
	  MissingManifestResourceException.cs :
	  implemented 2.0 resource support (write, and remaining read bits)
	  and GetStream(). Cosmetic attributes fixes.

	* UnmanagedMemoryStream.cs : added Closed event for sys.Resources use.
	* IntPtrStream.cs : added internal get_BaseAddress(), for the same.

	* ResourceManagerTest.cs : added tests for GetStream() (including
	  2.0 resource format tests).


svn path=/trunk/mcs/; revision=78024
2007-05-28 03:35:21 +00:00
Alexander Olk b760252ba4 2006-12-30 Alexander Olk <[email protected]>
* ResourceManagerTest.cs: add one new test and remove NotWorking.
	  All tests pass now.


svn path=/trunk/mcs/; revision=70272
2006-12-30 21:54:03 +00:00
Chris Toshok 3b605b1184 2006-10-09 Chris Toshok <[email protected]>
* ResourceManagerTest.cs: add some (NotWorking) tests for
	ResurceManager.


svn path=/trunk/mcs/; revision=66484
2006-10-09 22:41:14 +00:00
Robert Jordan 8f501dfb59 2006-03-14 Robert Jordan <[email protected]>
* ResourceManagerTest.cs: Reactivated tests. eol-style.


svn path=/trunk/mcs/; revision=57938
2006-03-14 02:13:36 +00:00
Robert Jordan a8d88f55e6 Reverted until I get more details. See #77242.
svn path=/trunk/mcs/; revision=55648
2006-01-16 19:24:18 +00:00
Robert Jordan 91844ccc0d 2006-01-13 Robert Jordan <[email protected]>
* ResourceManagerTest.cs: New. Unit tests for ResourceManager.
	See bug #77242.


svn path=/trunk/mcs/; revision=55572
2006-01-14 10:14:01 +00:00