Commit Graph
50 Commits
Author SHA1 Message Date
Zoltan Varga 82bb1e41c5 2009-06-26 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136942
2009-06-26 11:05:19 +00:00
Raja R Harinath 29caf0024e * HashMembershipConditionTest.cs (HashValue): Remove 1/256 chance
of false negative.

svn path=/trunk/mcs/; revision=55225
2006-01-09 15:13:01 +00:00
Sebastien Pouliot 2cd0bdf55b 2005-06-23 Sebastien Pouliot <[email protected]>
* ApplicationSecurityManagerCas.cs: New. CAS unit tests (2.0).
	* ApplicationSecurityManagerTest.cs: New. Unit tests (2.0).


svn path=/trunk/mcs/; revision=46439
2005-06-23 17:14:42 +00:00
Sebastien Pouliot 28c2d33a74 2005-06-20 Sebastien Pouliot <[email protected]>
* EvidenceTest.cs: Ensure that PermissionRequestEvidence doesn't
	show in Assembly and AppDomain evidences.


svn path=/trunk/mcs/; revision=46248
2005-06-20 16:45:38 +00:00
Sebastien Pouliot 5b1d3fdb2a 2005-06-16 Sebastien Pouliot <[email protected]>
* StrongNameTest.cs: Empty names are only verified in NET_2_0.


svn path=/trunk/mcs/; revision=46106
2005-06-16 19:33:22 +00:00
Sebastien Pouliot 58795582ad 2005-06-10 Sebastien Pouliot <[email protected]>
* StrongNameMembershipConditionTest.cs: New. Unit tests for 
	StrongNameMembershipCondition.
	* StrongNameTest.cs: Added test case for empty name.


svn path=/trunk/mcs/; revision=45748
2005-06-10 11:59:24 +00:00
Sebastien Pouliot 45ad452e5a 2005-05-26 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Added unit tests for RemovePermissionSet and
	Recover methods.


svn path=/trunk/mcs/; revision=45071
2005-05-26 19:27:05 +00:00
Sebastien Pouliot 13755a44f3 2005-05-16 Sebastien Pouliot <[email protected]>
* PolicyStatementTest.cs: New. Unit tests for PolicyStatement.


svn path=/trunk/mcs/; revision=44586
2005-05-16 19:45:37 +00:00
Sebastien Pouliot a27d2af1b0 2005-04-26 Sebastien Pouliot <[email protected]>
* ApplicationTrustTest.cs: New. Unit tests for ApplicationTrust (2.0).


svn path=/trunk/mcs/; revision=43631
2005-04-26 23:14:02 +00:00
Sebastien Pouliot 796bf88a02 2005-04-25 Sebastien Pouliot <[email protected]>
* FileCodeGroupTest.cs: Revoved tests for Scope property (2.0).
	* GacMembershipConditionTest.cs: Renamed Gac to GacInstalled (new name
	* GacTest.cs: Renamed Gac to GacInstalled (new name in beta2).
	in beta2).
	* IBuiltInEvidenceTest.cs: Renamed Gac to GacInstalled (new name in 
	beta2).
	* SiteTest.cs: Removed [Catogery("NotWorking")] from some 2.0 tests.
	* UrlTest.cs: Removed [Catogery("NotWorking")] from some 2.0 tests.
	* UrlMembershipConditionTest.cs: Removed [Catogery("NotWorking")] from
	some 2.0 tests.


svn path=/trunk/mcs/; revision=43552
2005-04-25 16:52:17 +00:00
Sebastien Pouliot 4d2bd7b85a 2005-03-18 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Remove non-corlib permission classes from the 
	policy XML string as this can fail for "make distcheck".


svn path=/trunk/mcs/; revision=41991
2005-03-18 14:38:22 +00:00
Sebastien Pouliot 73d8f27357 2005-02-16 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Renamed the file created by the StoreLocation 
	test case to include the username. This way multiple users sharing
	/tmp cannot block the test execution (e.g. buildbot). Also tries to
	remove the file after the test.


svn path=/trunk/mcs/; revision=40768
2005-02-16 19:49:55 +00:00
Sebastien Pouliot 5188ef0cdc 2005-01-31 Sebastien Pouliot <[email protected]>
* HashTest.cs: Oops, changed "NotWorking" to "NotDotNet".


svn path=/trunk/mcs/; revision=39837
2005-01-31 13:00:25 +00:00
Sebastien Pouliot 60f8a0a16d 2005-01-30 Sebastien Pouliot <[email protected]>
* HashTest.cs: Changed [Ignore] to [Category("NotWorking")] to reduce
	nunit logs.


svn path=/trunk/mcs/; revision=39810
2005-01-30 20:09:00 +00:00
Sebastien Pouliot 7f4384ad6d 2005-01-10 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Removed [Ignore] from tests as they now execute
	properly on 2.0. For 1.x the tests are added to the NotDotNet category.


svn path=/trunk/mcs/; revision=38615
2005-01-10 13:56:20 +00:00
Sebastien Pouliot e2740655bb 2004-09-19 Alexis Christoforides <[email protected]>
* UnionCodeGroupTest.cs: Added ResolveWithChildren test.

svn path=/trunk/mcs/; revision=34074
2004-09-19 23:57:35 +00:00
Sebastien Pouliot 9378c69c13 2004-09-01 Sebastien Pouliot <[email protected]>
* HashTest.cs: Fixed tests so they execute without errors on both
	Fx 1.1 and Fx 2.0 (beta 1).
	* PublisherTest.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.
	* SiteTest.cs: Fixed tests so they execute without errors on both Fx
	1.1 and Fx 2.0 (beta 1).
	* StrongNameTest.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.
	* UrlTest.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.

svn path=/trunk/mcs/; revision=33187
2004-09-01 21:43:52 +00:00
Sebastien Pouliot c621c39499 2004-09-01 Sebastien Pouliot <[email protected]>
* ZoneTest.cs: Added test to check that NoZone isn't included in the
	permission XML (returned by CreateIdentityPermission).

svn path=/trunk/mcs/; revision=33146
2004-09-01 12:07:28 +00:00
Sebastien Pouliot e6764ca344 2004-08-30 Sebastien Pouliot <[email protected]>
* SiteTest.cs: Added tests for CreateFromUrl. Updated AllChars for the
	differences in Fx 2.0.
	* UrlTest.cs: Unignore Url_InvalidSite and started changes to be
	compatible with NET_2_0.
	* ZoneTest.cs: Added tests for CreateFromUrl and ToString.

svn path=/trunk/mcs/; revision=33056
2004-08-30 19:05:17 +00:00
Sebastien Pouliot cbfc655c06 2004-08-26 Sebastien Pouliot <[email protected]>
* ApplicationDirectoryTest.cs: New. For NET_2_0 profile.
	* EvidenceTest.cs: Added more tests for 1.1 and new tests for 2.0.
	* FileCodeGroupTest.cs: Added more tests for Resolve,
	ResolveMatchingCodeGroups and new Fx 2.0 Scope property.
	* HashMembershipConditionTest.cs: New. Unit tests for hash membership.
	* HashTest.cs: New. Unit tests for hash.
	* IBuiltInEvidenceTest.cs: New. Unit tests for the internal
	IBuiltInEvidence interface. All tests are [Ignore]d for the
	* NetCodeGroupTest.cs: Ajusted PermissionSetName for Fx 2.0.
	* PermissionRequestEvidenceTest.cs: Ajusted existing tests for 2.0.
	Converted tests to NUnit 2.2 format. Converted to UNIX line endings.
	Added test to see that the original permission sets are copied but
	the instance copy can be changed (not copied on output).
	* PolicyLevelTest.cs: Added more tests for Resolve and
	ResolveMatchingCodeGroups.
	* UnionCodeGroupTest.cs: Added more properties validation in tests.

svn path=/trunk/mcs/; revision=32883
2004-08-26 14:34:25 +00:00
Sebastien Pouliot 580b2575b6 2004-08-24 Sebastien Pouliot <[email protected]>
* AllMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* ApplicationDirectoryMembershipConditionTest.cs: Renamed GetHashCode
	and ToString tests to remove compiler warnings.
	* ApplicationMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* DomainApplicationMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* GacMembershipConditionTest.cs: Added some new unit tests for
	FromXml to match other *MembershipCondition classes.
	* PublisherMembershipConditionTest.cs: Renamed GetHashCode and
	ToString tests to remove compiler warnings.
	* SiteMembershipConditionTest.cs: Completed. Converted existing unit
	tests to NUnit 2.2 format.
	* UrlMembershipConditionTest.cs: Completed. Converted existing unit
	tests to NUnit 2.2 format.
	* ZoneMembershipConditionTest.cs: Added some new unit tests to match
	other *MembershipCondition classes.

svn path=/trunk/mcs/; revision=32768
2004-08-24 17:09:24 +00:00
Sebastien Pouliot 0e012823b6 2004-08-23 Sebastien Pouliot <[email protected]>
* AllMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.
	* ApplicationDirectoryMembershipConditionTest.cs: New. Unit tests in
	NUnit 2.2 format.
	* ApplicationMembershipConditionTest.cs: New. Unit tests in NUnit 2.2
	format.
	* DomainApplicationMembershipConditionTest.cs: New. Unit tests in
	NUnit 2.2 format.
	* PublisherMembershipConditionTest.cs: Completed. Converted
	existing unit tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32728
2004-08-23 20:01:18 +00:00
Sebastien Pouliot 5cb4c33484 2004-08-12 Sebastien Pouliot <[email protected]>
* ZoneMembershipConditionTest.cs: Fixed tests that where failing too
	soon, i.e. not where I expected them to ;).
	* ZoneTest.cs: Added tests for Zone.Equals (null).

svn path=/trunk/mcs/; revision=32290
2004-08-12 23:01:19 +00:00
Sebastien Pouliot 34b3978bd1 2004-08-11 Sebastien Pouliot <[email protected]>
* UnionCodeGroupTest.cs: Added unit tests for Resolve. Converted
	existing unit tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32204
2004-08-11 13:14:38 +00:00
Sebastien Pouliot c894be6da9 2004-08-10 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Added new policy resolution tests (related to
	Zone). Converted existing unit tests to NUnit 2.2 format.

svn path=/trunk/mcs/; revision=32178
2004-08-10 20:15:49 +00:00
Sebastien Pouliot 6619acec63 2004-08-04 Sebastien Pouliot <[email protected]>
* GacMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.
	* GacTest.cs: New. Unit tests in NUnit 2.2 format.

svn path=/trunk/mcs/; revision=31903
2004-08-04 22:08:45 +00:00
Sebastien Pouliot 6a0c3b591a 2004-08-03 Sebastien Pouliot <[email protected]>
* ZoneMembershipConditionTest.cs: New. Unit tests in NUnit 2.2 format.

svn path=/trunk/mcs/; revision=31878
2004-08-04 18:53:52 +00:00
Sebastien Pouliot 5556cbeef3 2003-08-02 Sebastien Pouliot <[email protected]>
* UnionCodeGroupTest.cs: Added tests for ResolveMatchingCodeGroups.

svn path=/trunk/mcs/; revision=31752
2004-08-02 22:45:49 +00:00
Sebastien Pouliot fc84e62f34 2003-05-20 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs, StrongNameTest.cs: SetUp is now public (required
	for new nunit).

svn path=/trunk/mcs/; revision=27797
2004-05-21 01:22:17 +00:00
Sebastien Pouliot 7b23e7c548 2004-02-09 Sebastien Pouliot <[email protected]>
* PolicyLevelTest.cs: Ignored test Reset as the functionality isn't
	yet present in Mono.
	* UrlMembershipConditionTest.cs: Ignored the site related test as the
	functionality isn't yet present in Mono.
	* UrlTest.cs: Ignored the site related test as the functionality isn't
	yet present in Mono.

svn path=/trunk/mcs/; revision=22905
2004-02-09 18:19:37 +00:00
Sebastien Pouliot 597f8a1f6d 2004-01-28 Sebastien Pouliot <[email protected]>
* PermissionRequestEvidenceTest.cs: Added ToString () assertions
	to existing tests.
	* PublisherMembershipConditionTest.cs: Replaced "\r\n" with
	Environment.NewLine.
	* StrongNameTest.cs: Replaced "\r\n" with Environment.NewLine.

svn path=/trunk/mcs/; revision=22565
2004-01-28 04:59:40 +00:00
Sebastien Pouliot 28c0123404 2004-01-26 Sebastien Pouliot <[email protected]>
* CodeGroupTest.cs: Replaced "\r\n" with Environment.NewLine.

svn path=/trunk/mcs/; revision=22523
2004-01-27 02:59:02 +00:00
David Sheldon 5957758377 2004-01-25 David Sheldon <[email protected]>
* UrlTest.cs:  Changed "\r\n" in strings to use
       Environment.NewLine.

svn path=/trunk/mcs/; revision=22477
2004-01-25 18:56:46 +00:00
David Sheldon 50b364fbe2 2004-01-25 David Sheldon <[email protected]>
* Test/System.Security.Policy/PublisherTest.cs, SiteTest.cs:
  Changed "\r\n" in strings to use Environment.NewLine.


  * System.Security/SecurityElement.cs: Changed indentation in ToString, it seems
  MS indent by 3 spaces, not 4. Also added NewLine to childless
	elements.

svn path=/trunk/mcs/; revision=22473
2004-01-25 11:13:07 +00:00
Sebastien Pouliot 7fc0c5e5d2 2004-01-14 Sebastien Pouliot <[email protected]>
* UrlTest.cs: New. Unit tests for Url. Site test still fails.
	* UrlMembershipConditionTest.cs: New. Unit tests for
	UrlMembershipCondition. Site test still fails.

svn path=/trunk/mcs/; revision=22094
2004-01-15 04:23:52 +00:00
Sebastien Pouliot 74b59250da 2004-01-05 Sebastien Pouliot <[email protected]>
* CodeGroupTest.cs: Updated to NUnit2. Added new tests for exceptions
	and for ToXml/FromXml methods.
	* FileCodeGroupTest.cs: New. Unit tests for FileCodeGroup. Missing
	Resolve unit tests.
	* FirstMatchCodeGroupTest.cs: New. Unit tests for FirstMatchCodeGroup.
	Missing Resolve unit tests.
	* NetCodeGroupTest.cs: New. Unit tests for NetCodeGroup. Missing
	Resolve unit tests.
	* UnionCodeGroupTest.cs: New. Unit tests for NetCodeGroup. Missing
	Resolve unit tests.
	* PolicyLevelTest.cs: New. Unit tests for PolicyLevel. Missing Resolve
	unit tests.

svn path=/trunk/mcs/; revision=21735
2004-01-06 03:32:39 +00:00
Sebastien Pouliot 0e8d2da40d 2004-01-03 Sebastien Pouliot <[email protected]>
* SiteTest.cs: New. Unit tests for Site.
	* SiteMembershipConditionTest.cs: New. Implemented.

svn path=/trunk/mcs/; revision=21646
2004-01-03 16:59:42 +00:00
Sebastien Pouliot 08bfb7aba6 2004-01-02 Sebastien Pouliot <[email protected]>
* EvidenceTest.cs: Upgraded tests to NUnit2. Added new tests.
	* StrongNameTest.cs: Class now inherits from Assertion.

svn path=/trunk/mcs/; revision=21613
2004-01-03 01:35:06 +00:00
Nick Drochak 67278dc606 2004-01-01 Nick Drochak <[email protected]>
* PermissionRequestEvidenceTest.cs: New File

svn path=/trunk/mcs/; revision=21567
2003-12-31 15:46:31 +00:00
Sebastien Pouliot 361076fd51 2003-12-15 Sebastien Pouliot <[email protected]>
* PublisherMembershipConditionTest.cs: Added new unit tests for the
	newly implemented methods.

svn path=/trunk/mcs/; revision=21211
2003-12-16 02:08:43 +00:00
Sebastien Pouliot e81cf59856 2003-07-03 Sebastien Pouliot <[email protected]>
* ZoneTest.cs: New. Test everything except the unimplemented static
	CreateFromUrl method.

svn path=/trunk/mcs/; revision=15912
2003-07-04 02:26:50 +00:00
Sebastien Pouliot 838adda109 2003-04-23 Sebastien Pouliot <[email protected]>
* PublisherTest.cs: Updated to NUnit2 style.
	* PublisherMembershipConditionTest.cs: Updated to NUnit2 style.
	* StrongNameTest.cs: Updated to NUnit2 style.

svn path=/trunk/mcs/; revision=13958
2003-04-24 03:28:43 +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 376a1a0908 2002-12-16 Sebastien Pouliot <[email protected]>
* AllTests.cs: Added test suites for StrongName.
	* StrongNameTest.cs: New. Test suite for StrongName (complete).

svn path=/trunk/mcs/; revision=9710
2002-12-17 04:02:11 +00:00
Sebastien Pouliot 35c33c2804 2002-12-15 Sebastien Pouliot <[email protected]>
* AllTests.cs: Added test suites for Publisher and
	PublisherMembershipCondition.
	* PublisherTest.cs: New. Test suite for Publisher (complete).
	* PublisherMembershipConditionTest.cs: New. Test suite for Publisher
	PublisherMembershipCondition (incomplete).

svn path=/trunk/mcs/; revision=9697
2002-12-16 02:00:52 +00:00
Jackson Harper 4de2729aa5 Added test for Evidence class
svn path=/trunk/mcs/; revision=8640
2002-10-29 02:48:19 +00:00
Nick Drochak 4c3ce093b0 2002-02-10 Nick Drochak <[email protected]>
* AllTests.cs: Add new file.

svn path=/trunk/mcs/; revision=2290
2002-02-10 08:43:57 +00:00
Nick Drochak 22b9fa09e3 2002-02-07 Nick Drochak <[email protected]>
* CodeGroupTest.cs: Tests everything except the (To|From)Xml methods.

svn path=/trunk/mcs/; revision=2252
2002-02-06 12:13:52 +00:00
Nick Drochak fcfb9958fd 2002-02-01 Nick Drochak <[email protected]>
* CodeGroupTest.cs: Still not done, checking in now just in case

svn path=/trunk/mcs/; revision=2231
2002-02-01 20:39:18 +00:00
Nick Drochak d8306a109a 2002-01-30 Nick Drochak <[email protected]>
* CodeGroupTest.cs: New File.  Not done, but checking in now just in case

svn path=/trunk/mcs/; revision=2190
2002-01-29 13:36:48 +00:00