28 Commits
Author SHA1 Message Date
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Sebastien Pouliot c3b782f4ec Do not assume the unit tests can write in the application directory (e.g. iOS devices). Use the temporary directory and open files in read-only 2013-03-18 17:38:28 -04:00
Robert Jordan bd7622796a 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=137010
2009-06-26 21:06:21 +00:00
Atsushi Eno 2e31d6db16 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
	  incomplete. Patch by Jonas Larsson. Fixed bug #502168.

2009-05-07  Jonas Larsson <[email protected]> 

	* XmlSchemaValidatorTests.cs : added test for bug #501666.


svn path=/trunk/mcs/; revision=134396
2009-05-19 14:30:11 +00:00
Atsushi Eno 1c400f6aa7 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : make complex content type work like .NET
	  does. Patch by Jonas Larsson. Fixed bug #501814.

	* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
	  Larsson.


svn path=/trunk/mcs/; revision=133908
2009-05-11 17:37:07 +00:00
Atsushi Eno f8db1b9c2c 2006-12-12 Atsushi Enomoto <[email protected]>
* XmlValidatingReaderTests.cs : #if NET_2_0 was missing.


svn path=/trunk/mcs/; revision=69391
2006-12-12 12:10:14 +00:00
Atsushi Eno cc34d1694b 2006-12-12 Atsushi Enomoto <[email protected]>
* DTDValidatingReader2.cs : when an attribute declaration is missing
	  in the corresponding attlist declaration, it caused NRE.
	  Fixed bug #80231.

	* XmlValidatingReaderTests.cs : added test for bug #80231.


svn path=/trunk/mcs/; revision=69382
2006-12-12 03:13:15 +00:00
Atsushi Eno 21b9253d8b 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
	  default namespace was returning "" instead of null. It didn't check
	  empty namespace URI for non-empty prefixes.

	* XmlTextReaderTests.cs, XmlValidatingReaderTests.cs,
	  XmlReaderCommonTests.cs : added and fixed tests to make sure that
	  LookupNamespace("") returns null for default namespace, and checks
	  that empty namespace URI is not allowed for non-empty prefix.


svn path=/trunk/mcs/; revision=52099
2005-10-23 19:10:47 +00:00
Atsushi Eno 779494c75c 2005-06-17 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : removed some extra IsDefault check (with
	  the latse code default attributes are stored in hashtables anyways.)
	  Fixup attribute namespaces _after_ xmlns attributse are filled.
	  The latest change is not good that namespaceURI of a local attribute
	  was incorrectly globally looked up (it should be always "").

	* XmlValidatingReaderTests.cs : added attribute namespace check in
	  DefaultXmlnsAttributeLookup() as well.


svn path=/trunk/mcs/; revision=46122
2005-06-17 08:22:15 +00:00
Atsushi Eno 93261fb2a4 2005-06-17 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : LookupNamespace() was trying to access to 
	  null reference to validatingReader.
	* DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
	  It used to be valid only at the declaring element.

	* XmlValidatingReaderTests.cs : added DefaultXmlnsAttributeLookup().


svn path=/trunk/mcs/; revision=46120
2005-06-17 07:22:25 +00:00
Atsushi Eno 90cd8391f9 2005-05-31 Atsushi Enomoto <[email protected]>
* DTDReader.cs :
	  make sure to close parser input before parser stack pop.
	* DTDValidatingReader.cs : ditto.
	* DTDObjectModel.cs : Fixed another incorrect null BaseURI check.

	* XmlValidatingReaderTests.cs : let's test external DTD as well.


svn path=/trunk/mcs/; revision=45262
2005-05-31 13:37:32 +00:00
Atsushi Eno 19e20699c0 2005-05-31 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Last BaseURI exposed this hidden bug via
	  sys.security tests.

	* XmlValidatingReaderTests.cs : added ResolveEntityAndBaseURI() which
	  is imported from sys.security.


svn path=/trunk/mcs/; revision=45257
2005-05-31 11:41:54 +00:00
Atsushi Eno 3e84fc4524 2005-05-10 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : since namespace declarations might be
	  resolved differently due to entity handling, it holds its own set
	  of declared namespaces. NamespaceURI and LookupNamespace() use it.

	* XmlValidatingReaderTests.cs : fixed TestPreserveEntityNotOnDotNet()
	  which was regarded as a bug while it was by design.


svn path=/trunk/mcs/; revision=44316
2005-05-10 05:24:54 +00:00
Atsushi Eno 9a82d7bc32 2005-03-15 Atsushi Enomoto <[email protected]>
* XmlValidatingReaderTests.cs : Added test for sequential text nodes
	  which affects on ExpandEntities.


svn path=/trunk/mcs/; revision=41841
2005-03-15 16:48:12 +00:00
Atsushi Eno 7842bbb8c8 2005-03-07 Atsushi Enomoto <[email protected]>
* XmlValidatingReaderTests.cs : added ResolveEntityReadAttributeValue()


svn path=/trunk/mcs/; revision=41512
2005-03-07 09:58:40 +00:00
Nick Drochak cc924c18c7 2005-01-26 Nick Drochak <[email protected]>
* XmlValidatingReaderTests.cs: Move MS.NET bug-exposing test to a new
	test method and ignore it on .NET.

svn path=/trunk/mcs/; revision=39794
2005-01-30 13:17:56 +00:00
Atsushi Eno b8267fa659 2005-01-13 Atsushi Enomoto <[email protected]>
* XmlValidatingReaderTests.cs,
	  XmlReaderCommonTests.cs,
	  XmlTextWriterTests.cs,
	  XmlUrlResolverTests.cs :
	  Marked as NotDotNet for those tests that fails under MS.NET.
	  Commented out some XmlTextWriter implementation-dependent assertions.
	  Fixed ResolveUriWithNullArgs () expected return type.



svn path=/trunk/mcs/; revision=38844
2005-01-13 04:26:25 +00:00
Atsushi Eno 53e4641a96 2004-11-08 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added tests for 2.0 entity handling.
	* XmlValidatingReaderTests.cs : modified tests for entity handling
	  that are changed in 2.0.

svn path=/trunk/mcs/; revision=35813
2004-11-08 06:51:03 +00:00
Atsushi Eno 37601e10f9 2004-05-13 Atsushi Enomoto <[email protected]>
* XsdValidatingReaderTests.cs : Ignore TestNamespaceFalse(). It is not
	  kind of thing that should be supported.
	* XmlValidatingReaderTests.cs : commented a bit.

svn path=/trunk/mcs/; revision=27238
2004-05-13 07:26:39 +00:00
Atsushi Eno b95124c7fb 2003-12-16 Atsushi Enomoto <[email protected]>
* XmlDeclarationTests.cs : Added InvalidInnerText().
	* XmlDocumentTests.cs : CRLF fix (to LF)
	* XmlWriterTests.cs : tiny fix on WriteNodeFullDocument().
	* XmlValidatingReaderTests.cs : Fixed entity handling check tests.

svn path=/trunk/mcs/; revision=21243
2003-12-16 15:46:53 +00:00
Atsushi Eno 08158153ce 2003-08-24 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : Added DefaultAttributeRemoval() and
	  EmptyStringHasTextNode().
	* XmlElementTests.cs : Added RemoveDoesNotRemoveDefaultAttributes().
	* XmlReaderCommonTests.cs : Added overroaded AssertNodeValues() and
	  ReadAttributeValue().
	* XmlTextReaderTests.cs :
	  Added NotAllowedCharRef() and ExpandParameterEntity().
	  Also added but ignored tests: UndeclaredEntityInIntSubsetOnlyXml()
	  and UndeclaredEntityInStandaloneXml().
	* XmlValidatingReaderTests.cs : TestAttributeDefaultContribution()
	  refactory.
	* Added XsdParticleValidationTests.cs and XsdValidatingReaderTests.cs.

svn path=/trunk/mcs/; revision=17558
2003-08-24 19:04:01 +00:00
Atsushi Eno aafa71b5af 2003-08-05 Atsushi Enomoto <[email protected]>
* XmlReaderCommonTests.cs : Its XmlValidatingReader.EntityHandling
	  should be ExpandCharEntities.
	* XmlValidatingReaderTests.cs : added ResolveEntity(),
	  ResolveEntity2() and ResolveEntityWithoutDTD().

svn path=/trunk/mcs/; revision=17073
2003-08-05 16:17:37 +00:00
Atsushi Eno 62044c8ac2 2003-07-29 Atsushi Enomoto <[email protected]>
* XmlDocumentTests.cs : added DTDEntityAttributeHandling() test.
	* XmlElementTests.cs : added WriteToDefaultAttribute() test.
	* XmlNodeTests.cs : added InnerXmlWithXmlns () test.
	* XmlTextWriterTests.cs : added DontOutputNonDeclaredXmlns () test.
	* XmlValidatingReaderTests.cs : modified TestResolveEntity() to have
	  entity reference inside text content (and it now fails).

svn path=/trunk/mcs/; revision=16815
2003-07-29 02:24:01 +00:00
Atsushi Eno 85b67a618e 2003-07-26 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : added IdentityConstraints().
	* XmlDocumentTests.cs : added DocumentTypeNodes().
	* XmlNodeTests.cs : added InnerText().
	* XmlReaderCommonTests.cs : added XmlValidatingReader as one of the
	  testing reader. Added IndexerAndAttributes().
	* XmlValidatingReader.cs : modified TestAttributes() to have
	  ReadAttributeValue() tests. Added TestIdentityConstraints()

svn path=/trunk/mcs/; revision=16718
2003-07-26 19:46:11 +00:00
Atsushi Eno 19b526cef1 2003-07-24 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs,
	  XmlNodeTests.cs,
	  XmlTextWriterTests.cs : removed some compilation warning.
	* XmlNodeReaderTests.cs : reverted Jul. 12th. ReadInnerXmlWrongInit()
	  incorrect commit.
	* XmlValidatingReaderTests.cs : Code refactory (removed xml1, xml2...
	  and changed PrepareXmlReader() as returning validating reader.
	  Added indexer (this[]) property check and ValidationType.None check
	  to TestAttributeDefaultContribution().
	  Added TestExpandEntity(), TestPreserveEntity() and TestNormalization().

svn path=/trunk/mcs/; revision=16616
2003-07-24 17:34:42 +00:00
Atsushi Eno dd380a9326 2003-07-19 Atsushi Enomoto <[email protected]>
* XmlValidatingReaderTests.cs : added TestValidationEvent() and
	  some code refactory.

svn path=/trunk/mcs/; revision=16431
2003-07-19 16:49:18 +00:00
Atsushi Eno f4ca9969f5 2003-07-12 Atsushi Enomoto <[email protected]>
* XmlValidatingReaderTests.cs : added TestNonDeterministicContent() and
	  TestAttributeDefaultContribution().

svn path=/trunk/mcs/; revision=16141
2003-07-12 15:11:07 +00:00
Atsushi Eno b1d0e6a540 2003-07-06 Atsushi Enomoto <[email protected]>
* added XmlValidatingReaderTests.cs.

svn path=/trunk/mcs/; revision=15989
2003-07-06 17:25:42 +00:00