* SecurityElement.cs :
set_Text() should unescape the input string. get_Text() should
return unescaped string. It also applies to attribute value.
ToString() should return valid (escaped) XML.
* SecurityElementTest.cs : enabled test for #333699 and added
couple more.
svn path=/trunk/mcs/; revision=89135
ensure exception message match that of MS. In Tag property, set name
of parameter in ArgumentNullException and do not filter out
namespace prefixes. Modified Text property to allow null values
after change to IsValidText that no longer considers null value as
valid. Avoid NRE in Escape.
* SecurityElementTest.cs: No longer derive from Assertion. Added and
improved ctor tests. Improved AddAttribute and AddChild tests.
Added comment to mono's Attributes test and added test that passes
on MS (to track fix for MS bug). Improved IsValid* tests. Added tests
for Tag and Text. Improved FromString test to verify behavior wrt
namespace prefixes. Added test for bug #333699.
svn path=/trunk/mcs/; revision=87459
* SecureStringCas.cs: New. CAS unit tests for SecureString.
* SecureStringTest.cs: New. Unit tests for SecureString.
svn path=/trunk/mcs/; revision=52330
* CodeAccessPermissionCas.cs: New. CAS unit tests for using the
stack modifiers (mostly assert) on permissions.
* SecurityManagerCas.cs: New. CAS unit tests for SecurityManager.
* SecurityManagerTest.cs: Moved a policy resolution test to
SecurityManagerCas as it required CheckExecutionRights to be on.
svn path=/trunk/mcs/; revision=46381
* PermissionSetTest.cs: Added tests for GetPermission with null and
when using a subclass of a permission. Also some new (not working)
tests for NET_2_0.
svn path=/trunk/mcs/; revision=45751
* NamedPermissionSetTest.cs: Re-enable the "NotWorking" unit test.
* PermissionSetCas.cs: New. Moved RevertAssert unit tests from
PermissionSetTest to here as they require --security to work.
* PermissionSetTest.cs: Re-enable the "NotWorking" NET_2_0 unit tests.
* SecurityContextCas.cs: Fixed namespace.
2005-04-28 Sebastien Pouliot <[email protected]>
svn path=/trunk/mcs/; revision=45120
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
* SecurityContextCas.cs: New. CAS unit tests for SecurityContext.
* SecurityContextTest.cs: New. Unit tests for SecurityContext.
* SecurityCriticalAttributeTest.cs: New. Unit tests for
SecurityCriticalAttribute.
* SecurityTransparentAttributeTest.cs: New. Unit tests for
SecurityTransparentAttribute.
svn path=/trunk/mcs/; revision=43720
* HostSecurityManagerTest.cs: Renamed HostSecurityManagerFlags to
HostSecurityManagerOptions to match beta2.
* PermissionSetCollectionTest.cs: Removed "set" tests for the
PermissionSets property (removed in beta2).
svn path=/trunk/mcs/; revision=43553
* SecurityManagerTest.cs: Added new tests for 2.0. Fixed a test to work
even if the SecurityManager.CheckExecutionRights is false.
svn path=/trunk/mcs/; revision=39191
* SecurityElementTest.cs: Add new tests for 2.0 methods. Adapted
existing tests to deal with the fact that 2.0 doesn't indent the XML
attributes and child elements.
svn path=/trunk/mcs/; revision=38625
* HostSecurityManagerTest.cs: New. Unit tests for HostSecurityManager.
* PermissionSetCollectionTest.cs: New. Unit tests for PermissionSet
Collection.
svn path=/trunk/mcs/; revision=38572
* PermissionSetTest.cs, SecurityManagerTest.cs: Adjusted unit tests so
they now execute without errors on 2.0 Dec CTP.
svn path=/trunk/mcs/; revision=38311
* PermissionSetTest.cs: Fixed tests so they execute without errors on
both Fx 1.1 and Fx 2.0 (beta 1).
* SecurityManagerTest.cs: Fixed tests so they execute without errors
on both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33186
* PermissionSetTest.cs: Added tests for IsEmpty which can return true
even when Count > 0. Added tests for FromXml to see if class names
requires to be resolved when loaded from policy files.
* SecurityManagerTest.cs: Minor changes to tests so they succeed with
both Fx 1.1 and Fx 2.0 (beta 1).
svn path=/trunk/mcs/; revision=33149
* NamedPermissionTest.cs: Added unit tests for Copy(), Copy(name),
more tests for From/ToXml and Equals/GetHashCode (for NET_2_0).
* PermissionSetTest.cs: Added new unit tests for AddPermission,
ContainsNonCodeAccessPermissions, partial tests for undocumented
ConvertPermissionSet, Copy, CopyTo, GetHashCode (for NET_2_0),
GetPermission, Intersect, IsSubset, RemovePermission, SetPermission
and Union.
svn path=/trunk/mcs/; revision=33054