Commit Graph
31 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Marek Safar 025cb7a5d7 [corlib] Update fixed test 2014-02-06 22:30:49 +01:00
Marek Safar 21aae7666a [corlib] Fix some AssemblyName tests 2014-02-06 18:08:37 +01:00
Zoltan Varga b17461cb8a Disable a corlib test assertion which is no longer true. 2013-10-18 22:24:04 +02:00
Alexander Köplinger 4f37c78e6a Implemented AssemblyName.ReferenceMatchesDefinition () 2013-09-05 03:58:40 -07:00
Marek Safar 6d132a7c23 Remove generated file dependency to make fresh checkout tests work out of box 2013-03-07 09:31:47 +01:00
Marek Safar afa79435aa Update for mobile profile 2013-02-07 16:34:21 +01:00
Marek Habersack 5d29480868 [runtime] Fix for Xamarin bug #99. Don't fail to parse assembly names with spaces surrounding = in key=value pairs 2011-08-11 02:17:32 +02:00
Zoltan Varga 866ea36635 Fix some tests broken by some NET 4.0 changes. 2011-07-01 02:32:25 +02:00
Zoltan Varga cc36f2ba46 Add support for the processorArchitecture field in assembly names. Fixes #655096. 2010-11-20 03:09:49 +01:00
Zoltan Varga 0acf9469fb Fix warnings.
svn path=/trunk/mcs/; revision=155701
2010-04-19 08:41:42 +00:00
Gert Driesen a0065f3330 * AppDomainTest.cs: Added test for DefineDynamicAssembly overload
taking IEnumerable<CustomAttributeBuilder>.
* AssemblyBuilderTest.cs: Added tests for DefineUnmanagedResource and  
DefineVersionInfoResource overloads that check whether only a single
unmanaged resource can be defined. Improved test for SetCustomAttribute.
* AssemblyNameTest.cs: Added test for effect of AssemblyNameFlags on
FullName. Added test for PublicKey with value "null". Added ctor test
for Retargetable spec.
* AssemblyName.cs: Added support for Retargetable spec in FullName.

svn path=/trunk/mcs/; revision=93348
2008-01-20 15:51:42 +00:00
Gert Driesen 4c8c01a241 * AssemblyNameTest.cs: Improved tests for ProcessorArchictecture.
svn path=/trunk/mcs/; revision=92351
2008-01-06 16:50:48 +00:00
Gert Driesen 75fa72c63c * AssemblyBuilder.cs (UnprotectedGetName): Set the public key token
as well.
* AssemblyBuilderTest.cs: Improved existing AssemblyName related tests.
Enabled AssemblyName tests that previously failed.
* AssemblyNameCas.cs: Sync test methods with AssemblyNameTest.cs.
* AssemblyNameTest.cs: Removed AssertEqualsByteArrays method since
NUnit supports this out-of-the-box. Use more meaningful names for
some existing tests. Improved existing tests and added lots more.
Enabled tests that were previously failing.  Fixed and improved
tests for public key; the original "public key" was actually a         
key pair.
* AssemblyName.cs: Fixed default value for ProcessorArchitecture to
match MS. On 2.0 profile, return zero-length in FullName is no name
is set, and throw a SecurityException in FullName and GetPublicKeyToken
if a public key is set with no corresponding public key token. 
Fixed FullName to also include PublicKeyToken spec with "null" value
if public key is empty byte array. Fixed corlib part of bug #351057.   
In SetPublicKey, modify Flags accordingly. On the 2.0 profile, verify
the public key when the public key token is computed.

svn path=/trunk/mcs/; revision=92314
2008-01-05 19:35:02 +00:00
Gert Driesen 456092fa14 * Environment.cs: Bump corlib version.
* 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
2007-12-28 08:23:03 +00:00
Eyal Alalouf 30c28c41d7 Mark tests as not working under TARGET_JVM
svn path=/trunk/mcs/; revision=74246
2007-03-14 10:47:05 +00:00
Eyal Alalouf f65669f34f Port NUnit tests to TARGET_JVM configuration.
svn path=/trunk/mcs/; revision=73714
2007-03-05 14:57:05 +00:00
Gert Driesen e2b1fa634d * AssemblyName.cs: Revert change where filename was not converted to
absolute path before passing it to Assembly.InternalGetAssemblyName
as the CodeBase is not set in that case.
* AssemblyNameTest.cs: Added test for CodeBase of AssemblyName
filled by AssemblyName.GetAssemblyName. Added tests for bug #79661.

svn path=/trunk/mcs/; revision=66822
2006-10-19 20:32:06 +00:00
Carlos Alberto Cortez 4cf307ab1a 2005-09-26 Carlos Alberto Cortez <[email protected]>
* AssemblyNameTest.cs: Added some tests for the 2.0 new
	ctor. Keep some of them as NotWorking, since we need to figure out
	an elegant way to avoiding creating Version when not passing it.
	

svn path=/trunk/mcs/; revision=50759
2005-09-26 12:30:32 +00:00
Sebastien Pouliot 1f084ab5d3 2005-06-13 Sebastien Pouliot <[email protected]>
* AssemblyNameTest.cs: "Fixed" tests so they execute without errors on
	both Fx 1.1 SP1 and Fx 2.0 beta 2. Added corresponding NotWorking.


svn path=/trunk/mcs/; revision=45916
2005-06-13 20:26:03 +00:00
Sebastien Pouliot 51d9bc0894 2005-06-13 Sebastien Pouliot <[email protected]>
* AssemblyNameTest.cs: Added distinctive names for all asserts in 
	Version. Changed Self to NotWorking as other cases returns null. It 
	will re-activated once we know the logic behind it.


svn path=/trunk/mcs/; revision=45914
2005-06-13 19:51:59 +00:00
Carlos Alberto Cortez dab7658350 2005-06-07 Carlos Alberto Cortez <[email protected]>
* AssemblyNameTest.cs: Added tests to Version method,
	in order to do additional checks with AssemblyBuilder
	version.
	

svn path=/trunk/mcs/; revision=45661
2005-06-08 19:02:00 +00:00
Sebastien Pouliot 3a9e0ee575 * AssemblyNameTest.cs: Added tests for Clone and serialization without
a strongname.
	* AssemblyNameCas.cs: New. CAS unit tests for AssemblyName.
	* StrongNameKeyPairTest.cs: Little changes to make it easier to reuse 
	in CAS tests.
	* StrongNameKeyPairCas.cs: New. CAS unit tests for StrongNameKeyPair.

2005-04-04  Sebastien Pouliot  <[email protected]>


svn path=/trunk/mcs/; revision=42534
2005-04-04 19:02:51 +00:00
Sebastien Pouliot 704a44570c 2005-04-04 Sebastien Pouliot <[email protected]>
* AssemblyNameTest.cs: Add test for ArgumentNullException on 
	GetObjectData. Made existing tests more nunit2.2 like.
	* ModuleCas.cs: Added new tests for FullyQualifiedName and Name 
	properties.
	* ModuleTest.cs: Add test for ArgumentNullException on GetObjectData.


svn path=/trunk/mcs/; revision=42513
2005-04-04 12:26:53 +00:00
Lluis Sanchez 9b32c6e734 i * AssemblyNameTest.cs: AssertEqualsByteArrays(): don't crash if arrays are
empty. TestSerialization(): Use AssertEqualsByteArrays to compare keys.
	  Added messages to the assertions.

svn path=/trunk/mcs/; revision=29195
2004-06-10 14:58:32 +00:00
Gert Driesen 29a02024d6 * AssemblyNameTests.cs: added tests for AssemblyName.FullName
and serialization of AssemblyName, converted tests to use Assert
class

svn path=/trunk/mcs/; revision=29127
2004-06-09 17:53:12 +00:00
Zoltan Varga 7ed3050a80 2003-10-17 Zoltan Varga <[email protected]>
* AssemblyNameTest.cs: Convert to Nunit2 format, add tests for
	CultureInfo, Version and HashAlgorithm properties.

svn path=/trunk/mcs/; revision=19131
2003-10-17 12:45:07 +00:00
Sebastien Pouliot db0d827424 2002-12-30 Sebastien Pouliot <[email protected]>
* AssemblyNameTest.cs: Added test for FullName (null cultureinfo).

svn path=/trunk/mcs/; revision=9981
2002-12-30 15:27:25 +00:00
Sebastien Pouliot f91d740dc1 2002-12-23 Sebastien Pouliot <[email protected]>
* AssemblyNameTest.cs: Added test for non-signed assembly (which
	returns an empty array - i.e. not null like an empty assembly).

svn path=/trunk/mcs/; revision=9857
2002-12-24 03:48:49 +00:00
Nick Drochak 99a25b98bd 2002-12-21 Nick Drochak <[email protected]>
* all: make tests build and run under nunit2

svn path=/trunk/mcs/; revision=9817
2002-12-21 14:15:43 +00:00
Sebastien Pouliot 25d707e7cc 2002-12-08 Sebastien Pouliot <[email protected]>
* AllTests.cs: Added test suites for AssemblyName and
	StrongNameKeyPair.
	* AssemblyNameTest.cs: New. Test suite for AssemblyName.
	* StrongNameKeyPairTest.cs: New. Test suite for StrongNameKeyPair.

svn path=/trunk/mcs/; revision=9458
2002-12-09 00:16:12 +00:00