Commit Graph
61 Commits
Author SHA1 Message Date
Miguel de Icaza 0699e4da36 Fix warnings in mscorlib's Test suite + bring a couple more tests + fix thread rename test 2014-09-23 10:56:04 -04:00
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 afa79435aa Update for mobile profile 2013-02-07 16:34:21 +01:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Zoltan Varga b22059242d 2009-06-24 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136751
2009-06-24 04:07:12 +00:00
Miguel de Icaza 8e07acf772 Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new
value MacOSX (6) on .NET
 

svn path=/trunk/mcs/; revision=121711
2008-12-17 17:56:25 +00:00
motym ea68180314 some tests comment out for target_jvm
svn path=/trunk/mcs/; revision=71798
2007-01-28 08:46:59 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Sebastien Pouliot faccab3978 2006-08-21 Sebastien Pouliot <[email protected]>
* FileIOPermissionTest.cs: Added new test cases for union (#79118) and
	subpath handling.


svn path=/trunk/mcs/; revision=64146
2006-08-21 14:32:53 +00:00
Sebastien Pouliot 68c8b91d42 2006-04-07 Sebastien Pouliot <[email protected]>
* FileIOPermissionTest.cs: Adjust test cases for wildcards (like *) 
	that are valid in filenames under UNIX.


svn path=/trunk/mcs/; revision=59195
2006-04-07 17:20:56 +00:00
Sebastien Pouliot 63c9a39e59 2005-09-22 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttributeTest.cs, 
	EnvironmentPermissionAttributeTest.cs, 
	FileDialogPermissionAttributeTest.cs, 
	FileIOPermissionAttributeTest.cs, 
	GacIdentityPermissionAttributeTest.cs,
	HostProtectionAttributeTest.cs, 
	IsolatedStorageFilePermissionAttributeTest.cs,
	IsolatedStoragePermissionAttributeTest.cs,
	KeyContainerPermissionAttributeTest.cs,
	PermissionSetAttributeTest.cs, PrincipalPermissionAttributeTest.cs,
	PublisherIdentityPermissionAttributeTest.cs,
	ReflectionPermissionAttributeTest.cs,
	RegistryPermissionAttributeTest.cs, SecurityAttributeTest.cs,
	SecurityPermissionAttributeTest.cs,
	SiteIdentityPermissionAttributeTest.cs,
	StrongNameIdentityPermissionAttributeTest.cs,
	UIPermissionAttributeTest.cs, UrlIdentityPermissionAttributeTest.cs,
	ZoneIdentityPermissionAttributeTest.cs: Removed *Choice security 
	actions.


svn path=/trunk/mcs/; revision=50484
2005-09-22 13:44:08 +00:00
Ben Maurer 2cac9d1d6b eol style
svn path=/trunk/mcs/; revision=46462
2005-06-23 23:11:11 +00:00
Sebastien Pouliot 9a762e1603 2005-06-16 Sebastien Pouliot <[email protected]>
* PrincipalPermissionTest.cs: Added more tests for IsSubsetOf method.


svn path=/trunk/mcs/; revision=46107
2005-06-16 19:34:33 +00:00
Sebastien Pouliot a4502f83e3 2005-05-18 Sebastien Pouliot <[email protected]>
* HostProtectionAttributeTest.cs: Added tests to check for individual 
	removal of flags.
	* SecurityPermissionAttributeTest.cs: Added tests to check for 
	individual removal of flags.


svn path=/trunk/mcs/; revision=44709
2005-05-18 19:17:56 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Sebastien Pouliot 1f2bb047c2 2005-04-27 Sebastien Pouliot <[email protected]>
* IBuiltInPermissionTest.cs: Fixed token index numbers wrt beta2.
	* IsolatedStorageFilePermissionTest.cs: Change containment to match 
	beta2.
	* UrlIdentityPermissionTest.cs: Fixed test case for 2.0.
	* ZoneIdentityPermissionAttributeTest.cs: Tag unrestricted test as
	NotWorking.


svn path=/trunk/mcs/; revision=43660
2005-04-27 14:54:11 +00:00
Sebastien Pouliot dc81fa5816 2005-03-31 Sebastien Pouliot <[email protected]>
* FileIOPermissionTest.cs: Added a test case for a filename starting
	with the "file://" scheme (which isn't valid).


svn path=/trunk/mcs/; revision=42448
2005-03-31 21:39:19 +00:00
Sebastien Pouliot b8a9fe5613 2005-02-24 Sebastien Pouliot <[email protected]>
* StrongNameIdentityPermissionTest.cs: Fixed some bad tests and 
	re-enabled the tests on NET_2_0 profile.


svn path=/trunk/mcs/; revision=41173
2005-02-25 02:48:31 +00:00
Ben Maurer c49708287c 0 failures here. YAY
svn path=/trunk/mcs/; revision=40871
2005-02-18 17:55:53 +00:00
Ben Maurer 10452fd9a9 more failing tests
svn path=/trunk/mcs/; revision=40839
2005-02-18 04:06:05 +00:00
Ben Maurer faad63f1ab NotWorking fixes for 2.0
svn path=/trunk/mcs/; revision=40785
2005-02-17 04:04:54 +00:00
Sebastien Pouliot f64206e556 2005-01-08 Sebastien Pouliot <[email protected]>
* PermissionSetAttributeTest.cs: Added unit tests for Hex property.


svn path=/trunk/mcs/; revision=38541
2005-01-08 20:29:02 +00:00
Sebastien Pouliot 0106beac09 2005-01-06 Sebastien Pouliot <[email protected]>
* PublisherIdentityPermissionTest.cs: Fixed tests for NET_1_1 profile.
	* SiteIdentityPermissionTest.cs: Fixed tests for NET_1_1 profile.
	* StrongNameIdentityPermissionTest.cs: Fixed tests for NET_1_1 profile.
	* UrlIdentityPermissionTest.cs: Fixed tests for NET_1_1 profile.


svn path=/trunk/mcs/; revision=38457
2005-01-06 19:48:37 +00:00
Sebastien Pouliot c51631c0be 2005-01-05 Sebastien Pouliot <[email protected]>
* DataProtectionPermissionAttributeTest.cs: Moving to System.Security.


svn path=/trunk/mcs/; revision=38357
2005-01-05 15:24:14 +00:00
Sebastien Pouliot 16c3c3ef5a 2005-01-04 Sebastien Pouliot <[email protected]>
* GacIdentityPermissionTest.cs, IBuiltInPermissionTest.cs, 
	PublisherIdentityPermissionAttributeTest.cs, 
	PublisherIdentityPermissionTest.cs, 
	SiteIdentityPermissionAttributeTest.cs, SiteIdentityPermissionTest.cs,
	StrongNameIdentityPermissionAttributeTest.cs, 
	StrongNameIdentityPermissionTest.cs, 
	UrlIdentityPermissionAttributeTest.cs, UrlIdentityPermissionTest.cs,
	ZoneIdentityPermissionTest.cs: Adjusted unit tests so they now execute
	without errors on 2.0 Dec CTP.


svn path=/trunk/mcs/; revision=38310
2005-01-04 14:11:00 +00:00
Nick Drochak 8067110646 2005/01/03 Nick Drochak <[email protected]>
* System.Globalization/TextInfoTest.cs
* System/BitConverterTest.cs.orig
* System/ConvertTest.cs
* System/TypeTest.cs
* System/AppDomainSetupTest.cs
* System/StringTest.cs
* System/BitConverterTest.cs
* System/AppDomainTest.cs
* System.Threading/ThreadTest.cs
* System.Security.Policy/ZoneTest.cs
* System.Runtime.Remoting/SynchronizationAttributeTest.cs
* System.Security.Permissions/FileIOPermissionTest.cs
* System.Security.Permissions/FileIOPermissionAttributeTest.cs
* System.Security.Permissions/SecurityPermissionTest.cs
* System.Reflection.Emit/TypeBuilderTest.cs
* System.Reflection/AssemblyTest.cs:

Make tests pass on MS DotNet

svn path=/trunk/mcs/; revision=38263
2005-01-03 04:29:52 +00:00
Sebastien Pouliot a64a7421dc 2004-10-15 Sebastien Pouliot <[email protected]>
* PrincipalPermissionTest.cs: Added two new tests to check for nulls
	during intersection.

svn path=/trunk/mcs/; revision=35029
2004-10-15 13:54:03 +00:00
Sebastien Pouliot 8c2659ca8d 2004-09-04 Sebastien Pouliot <[email protected]>
* FileIOPermissionAttributeTest.cs: Added a new test to check that the
	attribute class accept (and retains) non-c14n filenames while the
	permission class accept, but c14n, filenames. Fixed other tests that
	didn't check for c14n results from the created permission.

svn path=/trunk/mcs/; revision=33368
2004-09-05 13:04:24 +00:00
Sebastien Pouliot fb72507c32 2004-09-03 Sebastien Pouliot <[email protected]>
* RegistryPermissionTest.cs: Added tests for subsets on keys (as this
	is valid).

svn path=/trunk/mcs/; revision=33319
2004-09-03 22:43:33 +00:00
Sebastien Pouliot 779dbe2e00 2004-09-03 Sebastien Pouliot <[email protected]>
* RegistryPermissionTest.cs: New. Unit tests for RegistryPermission.

svn path=/trunk/mcs/; revision=33306
2004-09-03 18:30:47 +00:00
Sebastien Pouliot 5acf83ed0f 2004-09-03 Sebastien Pouliot <[email protected]>
* UrlIdentityPermissionTest.cs: Added a test for Copy an empty object
	which results in a different behaviour in Fx 1.1 and 2.0.

svn path=/trunk/mcs/; revision=33266
2004-09-03 11:36:16 +00:00
Sebastien Pouliot 18cbf183b4 2004-09-01 Sebastien Pouliot <[email protected]>
* EnvironmentPermissionTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1).
	* PublisherIdentityPermissionTest.cs: Fixed tests so they execute
	without errors on both Fx 1.1 and Fx 2.0 (beta 1).
	* SiteIdentityPermissionTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1). Fixed line endings.
	* StrongNameIdentityPermissionTest.cs: Fixed tests so they execute
	without errors on both Fx 1.1 and Fx 2.0 (beta 1).
	* StrongNamePublicKeyBlobTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1). Converted tests to NUnit
	2.2 format.
	* UrlIdentityPermissionTest.cs: Fixed tests so they execute without
	errors on both Fx 1.1 and Fx 2.0 (beta 1).

svn path=/trunk/mcs/; revision=33188
2004-09-01 21:51:49 +00:00
Sebastien Pouliot 8f0a4478d2 2004-09-01 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionTest.cs: Ensure we aren't encoding NoZone in
	the permission XML (ToXml).

svn path=/trunk/mcs/; revision=33147
2004-09-01 12:09:34 +00:00
Sebastien Pouliot af115212b9 2003-08-20 Sebastien Pouliot <[email protected]>
* UrlIdentityPermissionTest.cs: New unit tests for
	UrlIdentityPermission. Lacks tests for wilcards.

svn path=/trunk/mcs/; revision=32585
2004-08-20 17:44:55 +00:00
Sebastien Pouliot f5c01975b6 2003-08-20 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
	class CodeAccessSecurityAttribute.
	* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
	DataProtectionPermissionAttribute class.
	* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
	HostProtectionAttribute class.
	* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
	abstract class IsolatedStoragePermissionAttribute.
	* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
	KeyContainerPermissionAttribute class.
	* SecurityAttributeTest.cs: New unit tests for abstract class
	SecurityAttribute.
	* SiteIdentityPermissionTest.cs: New unit tests for
	SiteIdentityPermission. Lacks tests for wilcards.

svn path=/trunk/mcs/; revision=32572
2004-08-20 13:22:59 +00:00
Sebastien Pouliot 3e39548144 2003-08-19 Sebastien Pouliot <[email protected]>
* CodeAccessSecurityAttributeTest.cs: New unit tests for abstract
	class CodeAccessSecurityAttribute.
	* DataProtectionPermissionAttributeTest.cs: New unit tests for Fx 2.0
	DataProtectionPermissionAttribute class.
	* EnvironmentPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Fixed small
	behaviour difference with Fx 2.0.
	* FileDialogPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* FileIOPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Added tests
	for new Fx 2.0 properties.
	* HostProtectionAttributeTest.cs: New unit tests for Fx 2.0
	HostProtectionAttribute class.
	* IsolatedStoragePermissionAttributeTest.cs: New unit tests for
	abstract class IsolatedStoragePermissionAttribute.
	* KeyContainerPermissionAttributeTest.cs: New unit tests for Fx 2.0
	KeyContainerPermissionAttribute class.
	* PermissionSetAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Added tests
	for new Fx 2.0 properties.
	* PrincipalPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* PublisherIdentityPermissionAttributeTest.cs: Added tests to check
	class's	attributes. Converted existing tests to NUnit 2.2 format.
	* ReflectionPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* RegistryPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format. Added tests
	for new Fx 2.0 properties.
	* SecurityAttributeTest.cs: New unit tests for abstract class
	SecurityAttribute.
	* SecurityPermissionAttributeTest.cs: Removed unrequired line.
	* SiteIdentityPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* StrongNameIdentityPermissionAttributeTest.cs: Removed unrequired line.
	* UIPermissionAttributeTest.cs: Removed unrequired line.
	* UrlIdentityPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* ZoneIdentityPermissionAttributeTest.cs: Removed unrequired line.

svn path=/trunk/mcs/; revision=32538
2004-08-19 18:46:33 +00:00
Sebastien Pouliot ac2b728164 2003-08-19 Sebastien Pouliot <[email protected]>
* SecurityPermissionAttributeTest.cs: Added unit tests for invalid
	SecurityAction, Flags effects and custom attributes. Converted
	existing tests to NUnit 2.2 format.
	* SecurityPermissionTest.cs: New. Unit tests for SecurityPermission.

svn path=/trunk/mcs/; revision=32521
2004-08-19 11:23:14 +00:00
Sebastien Pouliot bce97c7b41 2003-08-18 Sebastien Pouliot <[email protected]>
* IsolatedStorageFilePermissionAttributeTest.cs: Added tests to check
	class's	attributes. Converted existing tests to NUnit 2.2 format.
	* IsolatedStorageFilePermissionTest.cs: New. Unit tests for
	IsolatedStorageFilePermission.

svn path=/trunk/mcs/; revision=32489
2004-08-18 14:48:37 +00:00
Sebastien Pouliot 4b9312623c 2003-08-18 Sebastien Pouliot <[email protected]>
* GacIdentityPermissionAttributeTest.cs: New unit tests for
	GacIdentityPermissionAttribute (NET_2_0).
	* GacIdentityPermissionTest.cs: New unit tests for
	GacIdentityPermission (NET_2_0).
	* StrongNameIdentityPermissionAttributeTest.cs: Added tests to
	check class's attributes.
	* UIPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.
	* ZoneIdentityPermissionAttributeTest.cs: Added tests to check class's
	attributes. Converted existing tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32479
2004-08-18 11:33:51 +00:00
Sebastien Pouliot 7651e338a7 2003-08-17 Sebastien Pouliot <[email protected]>
* StrongNameIdentityPermissionTest.cs: New. Unit tests for
	StrongNameIdentityPermission.
	* StrongNameIdentityPermissionAttributeTest.cs: Added unit test to
	check the behavior of using an invalid SecurityAction. Added tests
	for CreatePermission. Converted existing tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32457
2004-08-17 19:39:04 +00:00
Sebastien Pouliot 8550e1245c 2003-08-17 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionAttributeTest.cs: Added unit tests to check
	the behavior of using invliad enums for properties (no checks).
	* ZoneIdentityPermissionTest.cs: Added new unit tests for XML decoding.

svn path=/trunk/mcs/; revision=32431
2004-08-17 14:11:25 +00:00
Sebastien Pouliot 2a99de5c1b 2003-08-17 Sebastien Pouliot <[email protected]>
* IBuiltInPermissionTest.cs: New. Unit tests to check the result of
	the "somewhat undocumented" IBuiltInPermission.GetTokenIndex on all
	permissions inside corlib.
	* UIPermissionTest.cs: New. Unit tests for UIPermission.
	* UIPermissionAttributeTest.cs: Added unit tests to check the behavior
	of using invliad enums for properties (no checks).

svn path=/trunk/mcs/; revision=32422
2004-08-17 11:21:13 +00:00
Sebastien Pouliot 722a8562be 2003-08-04 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionTest.cs: Added tests to check that NoZone is a
	subset of every SecurityZone.

svn path=/trunk/mcs/; revision=31859
2004-08-04 11:50:02 +00:00
Sebastien Pouliot 6bb4b366c5 2003-08-03 Sebastien Pouliot <[email protected]>
* ZoneIdentityPermissionTest.cs: New. NUnit 2.2 format.

svn path=/trunk/mcs/; revision=31813
2004-08-03 18:19:31 +00:00
Sebastien Pouliot 9c9fd72996 2003-05-20 Sebastien Pouliot <[email protected]>
* PublisherIdentityPermissionTest.cs: SetUp is now public (required
	for new nunit).

svn path=/trunk/mcs/; revision=27796
2004-05-21 01:18:43 +00:00
Sebastien Pouliot 0d651e1e7c 2004-01-27 Sebastien Pouliot <[email protected]>
* FileIOPermissionTest.cs: Converted to NUnit2. Added a test to show a
	strange behaviour (short/long path) - ignored for now.

svn path=/trunk/mcs/; revision=22548
2004-01-27 17:52:55 +00:00
Sebastien Pouliot d7b7f617c0 2004-01-27 Sebastien Pouliot <[email protected]>
* FileIOPermissionAttributeTest.cs: Removed GetTempPath from the tests
	as the introduced failures weren't related to the class (test moved to
	FileIOPermissionTest.cs).

svn path=/trunk/mcs/; revision=22546
2004-01-27 17:34:32 +00:00
Sebastien Pouliot 1eb7770a06 2003-12-29 Sebastien Pouliot <[email protected]>
* EnvironmentPermissionAttributeTest.cs: Updated to test default
	properties, Actions, get for All (1.1) and Unrestricted.
	* FileDialogPermissionAttributeTest.cs: Updated to test default
	properties, Actions and Unrestricted.
	* FileIOPermissionAttributeTest.cs: Updated to test default
	properties, Actions, get for All (1.1) and Unrestricted.
	* IsolatedStorageFilePermissionAttributeTest.cs: New.
	* PermissionSetAttributeTest.cs: New.
	* PrincipalPermissionAttributeTest.cs: Updated to test default
	properties, Actions and Unrestricted.
	* PublisherIdentityPermissionAttributeTest.cs: Updated to test default
	properties, Actions and Unrestricted.
	* ReflectionPermissionAttributeTest.cs: Updated to test default
	properties, Actions and Unrestricted.
	* RegistryPermissionAttributeTest.cs: New.
	* SecurityPermissionAttributeTest.cs: New.
	* SiteIdentityPermissionAttributeTest.cs: New.
	* StrongNameIdentityPermissionAttributeTest.cs: New.
	* StrongNamePublicKeyBlobTest.cs: Converted to NUnit2 format.
	* UIPermissionAttributeTest.cs: New.
	* UrlIdentityPermissionAttributeTest.cs: New.
	* ZoneIdentityPermissionAttributeTest.cs: New.

svn path=/trunk/mcs/; revision=21542
2003-12-30 03:35:32 +00:00
Nick Drochak 8d4df80c84 2003-10-21 Nick Drochak <[email protected]>
* FileIOPermissionAttributeTest.cs: Handle Short File Name vs. Long
	File Name messiness.  This probably needs to be worked on for the
	tests to work on Linux, etc.

svn path=/trunk/mcs/; revision=19260
2003-10-21 05:08:46 +00:00
Sebastien Pouliot 8a8903da3e 2003-07-01 Sebastien Pouliot <[email protected]>
* PrincipalPermissionAttributeTest.cs: New.
	* PrincipalPermissionTest.cs: New.

svn path=/trunk/mcs/; revision=15822
2003-07-01 19:16:54 +00:00