Commit Graph
14 Commits
Author SHA1 Message Date
Gert Driesen f4c61f4e5f * SecurityElementTest.cs: Allow TestToString to pass on 1.0 profile.
svn path=/trunk/mcs/; revision=89153
2007-11-07 19:25:05 +00:00
Gert Driesen e21ffee91c Fixed 1.0 profile build.
svn path=/trunk/mcs/; revision=89151
2007-11-07 19:12:38 +00:00
Atsushi Eno daa70f997b 2007-11-07 Atsushi Enomoto <[email protected]>
* 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
2007-11-07 18:07:29 +00:00
Gert Driesen 6c3dd1f940 * SecurityElementTest.cs: Added tests for using single quotes as
delimiter of which one passes on Mono and one on MS (due to bug).

svn path=/trunk/mcs/; revision=87462
2007-10-14 15:05:28 +00:00
Gert Driesen 9790712cc7 * SecurityElementTest.cs: Modified test for bug #333699 to use double
quote as delimiter to work around MS bug. Added test for bug #333725.

svn path=/trunk/mcs/; revision=87461
2007-10-14 14:40:10 +00:00
Gert Driesen 98c4e1fa83 * SecurityElement.cs: In ctors, do not assign to Tag property to
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
2007-10-14 13:44:48 +00:00
Sebastien Pouliot 617e3babf5 2005-01-30 Sebastien Pouliot <[email protected]>
* PermissionSetTest.cs: Changed [Ignore] to [Category("NotDotNet")] to
	reduce nunit logs.
	* SecurityElementTest.cs: Changed [Ignore] to [Category("NotDotNet")] 
	to reduce nunit logs.
	* SecurityManagerTest.cs: Changed [Ignore] to [Category("NotDotNet")] 
	to reduce nunit logs.


svn path=/trunk/mcs/; revision=39812
2005-01-30 20:22:15 +00:00
Sebastien Pouliot d01f7544c9 2005-01-10 Sebastien Pouliot <[email protected]>
* 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
2005-01-10 15:31:38 +00:00
Sebastien Pouliot b20fb36b80 2003-05-20 Sebastien Pouliot <[email protected]>
* SecurityElementTest.cs: SetUp is now public (required for new nunit).

svn path=/trunk/mcs/; revision=27794
2004-05-21 01:14:54 +00:00
Sebastien Pouliot c0b8fef831 2004-01-27 Sebastien Pouliot <[email protected]>
* SecurityElementTest.cs: Added new tests for duplicate attributes
	and multiple attribute order and ToString representation.

svn path=/trunk/mcs/; revision=22562
2004-01-28 04:41:54 +00:00
Sebastien Pouliot e9e39f2c66 2004-01-02 Sebastien Pouliot <[email protected]>
* SecurityElementTest.cs: Added new tests, constructors and null
	related, and converted to NUnit2.

svn path=/trunk/mcs/; revision=21611
2004-01-03 00:58: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
Nick Drochak 524dcdbc17 2002-06-11 Nick Drochak <[email protected]>
* SecurityElementTest.cs: Catch and report unexpected exceptions.

svn path=/trunk/mcs/; revision=5203
2002-06-10 11:35:18 +00:00
Lawrence Pit 04dac1507b SecurityElement fixed and several methods implemented, added test unit
svn path=/trunk/mcs/; revision=4085
2002-04-27 10:49:32 +00:00