39 Commits
Author SHA1 Message Date
Alexander Köplinger 3d910b7477 [System.XML] Switch tests to use embedded test resources 2018-09-27 22:47:14 +02:00
Damien Daspit c1d5e5ca14 [System.XML] Add unit test for #18118 2014-03-17 15:16:04 +01:00
Eberhard Beilharz 86164dac13 [Sys.Xml] Add unit test for Novell bug #599689
The unit test demonstrates a difference between Mono and .NET
(https://bugzilla.novell.com/show_bug.cgi?id=599689).
2014-02-27 16:28:08 +01:00
Sebastien Pouliot 31751dd12a In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolverTest.cs: New. Unit tests for base features.

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
	method for NET_2_1 profile.

In .:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
	the unit tests


svn path=/trunk/mcs/; revision=132851
2009-04-28 15:23:37 +00:00
Atsushi Eno d89e9691ac 2008-02-19 Atsushi Enomoto <[email protected]>
* XsdWildcard.cs : block extra compilation and made compilation reset.
	  This somehow fixed bug #360541.

	* XmlSchemaAny.cs : block extra compilation in anyTypeContent.

	* XmlSchemasTests.cs : new test file (for bug #360541).

	* System.Xml_test.dll.sources: added XmlSchemasTests.cs.


svn path=/trunk/mcs/; revision=96115
2008-02-19 04:02:53 +00:00
Atsushi Eno ea43bd0eb7 2008-02-04 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : added couple of null argument check.
	  Do not depend on XmlSchemaInfo to retrieve attribute value (it
	  could be null).
	  Do not practically validate attribute when it is not in validating
	  state (i.e. inside xs:any). Fixed bug #358408.

	* XmlSchemaValidatorTests.cs : new. Test for bug #358408.

	* 358408.xsd : new test file.

	* System.Xml_test.dll.sources : added XmlSchemaValidatorTests.cs.
	* Makefile : extra distfiles (358408.xsd).


svn path=/trunk/mcs/; revision=94729
2008-02-04 08:49:05 +00:00
Gert Driesen 49a0cca265 * XmlParserContextTests.cs: Added ctor tests.
* System.Xml_test.dll.sources: added XmlParserContextTests.cs.

svn path=/trunk/mcs/; revision=92968
2008-01-15 17:40:34 +00:00
Konstantin Triger fe898472cf cosmetic fix for the exception type
svn path=/trunk/mcs/; revision=76822
2007-05-07 10:44:31 +00:00
Atsushi Eno 3240603b89 2006-11-02 Atsushi Enomoto <[email protected]>
* CodeIdentifier.cs : in 2.0 profile, .ctor() is exposed to
	  explicitly say Obsolete instantiation.
	* CodeIdentifiers.cs : implemented case-insensitive mode.
	* XmlSerializerAssemblyAttribute.cs : added missing .ctor().
	* SoapIncludeAttribute.cs, XmlIncludeAttribute.cs :
	  in 2.0 profile it could also be applied to an interface.
	* SoapReflectionImporter.cs,
	  XmlReflectionImporter.cs,
	  XmlMappingAccess.cs :
	  added missing ImportMembersMapping overload and moved actual
	  implementation to most lengthy-arglist one. To make it possible,
	  XmlMappingAccess is included in 1.x as internal enum.


svn path=/branches/atsushi/mcs/; revision=67256
2006-11-02 07:58:54 +00:00
Atsushi Eno 922203ea7c 2006-11-01 Atsushi Enomoto <[email protected]>
* XmlSerializerImplementationTests.cs : new testfixture.

	* SchemaImporterExtensionCollectionTests.cs,
	  SchemaImporterExtensionTests.cs : new testfixtures.

	* System.Xml_test.dll.sources : added following tests:
	  - XmlSerializerImplementationTests.cs
	  - SchemaImporterExtensionTests.cs
	  - SchemaImporterExtensionCollectionTests.cs


svn path=/branches/atsushi/mcs/; revision=67235
2006-11-01 20:05:41 +00:00
Gert Driesen d7cc337ecd * System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
XmlSchemaCollectionTests.cs.
* XmlSchemaCollectionTests.cs: added test for bug #78220.

svn path=/trunk/mcs/; revision=59970
2006-04-27 12:35:09 +00:00
Gert Driesen a99e0e1f9b * SoapAttributesTests.cs: Added tests for bug #78205.
* XmlSerializerTestClasses.cs: Added test classes and improved existing
classes for usage in upcoming bug reports.
* System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
SoapAttributesTests.cs.
* SoapAttributes.cs: The DefaultValueAttribute.Value should be returned
as SoapDefaultValue instead of the attribute itself. Fixes bug #78205.

svn path=/trunk/mcs/; revision=59917
2006-04-26 09:34:18 +00:00
Gert Driesen 69340a888f * XmlCodeExporterTests.cs: Added tests for XmlCodeExporter (currently
marked NotWorking).
* System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
XmlCodeExporterTests.cs.

svn path=/trunk/mcs/; revision=59707
2006-04-20 18:16:49 +00:00
Atsushi Eno f764fa4dfd 2006-04-12 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources :
	  Added Test/System.Xml/XmlDefaultReader.cs.

	* XmlSchemaValidatingReader.cs : don't reject such XmlReader that
	  does not implement IXmlNamespaceResolver.

	* XmlReaderSettingsTests.cs : 
	  Added CreateValidatorFromNonIXmlNamespaceResolver() which is
	  uncovered by NVDL validator.
	* XmlDefaultReader.cs : new file for above.


svn path=/trunk/mcs/; revision=59399
2006-04-12 10:27:57 +00:00
Gert Driesen fe34bc872c * XmlSerializationWriterTests.cs: Use Assert instead of deprecated
Assertion class. Added tests for FromEnum, WriteXsiType, 
WriteTypedPrimitive and WritePotentiallyReferencingElement. Changed
accessibility of Reset and Content on XmlSerializationWriterTester
and added public Execute methods for WritePotentiallyReferencingElement
and WriteTypedPrimitive, to allow this class to be useful for tests
that have effect on the prefix for other tests.
* XmlSerializationReaderTests.cs: Added tests for ToEnum.
* System.Xml_test.dll.Sources: Added XmlSerializationReaderTests.cs.
* XmlSerializationWriter.cs: Implemented 2.0 version of FromEnum, and
CreateInvalidEnumValueException. Set eol-style to native.
* XmlCustomerFormatter.cs: Added FromEnum overload that takes name of
enum for which string value must be created. Set eol-style to native.
Modified FromEnum to behave more like MSFT's implementation:
- treat value as bit field.
- no longer return empty string if the value matches an id for which there's 
no corresponding name.
- if one of the ids has value 0 and there's a match for the enum value
(with a zero length XML name) or the enum value is 0, then return the 
corresponding XML for the id with value 0.
- in 2.0 profile, throw InvalidOperationException if no match is found
for (part of) the enum value.
Modifies ToEnum to match the MSFT implementation (as described in
.NET 2.0 SDK):
- Expect hashtable containing enum names as key, and corresponding
integral numbers as value.
- Do not report exception for whitespace-only value.
- Support space (MS docs are not clear about this) delimited list 
of names.
- typeName is only used to construct exception message.

svn path=/trunk/mcs/; revision=56700
2006-02-09 13:30:02 +00:00
Atsushi Eno 3e92836661 2006-01-10 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : added XmlSchemaTypeTests.cs.

	* XmlSchemaTypeTests.cs : new file. Test for TypeCode.
	* XmlSchemaSetTests.cs : added more tests for Add() and marked one as
	  NotWorking (we need info on how consistent this method is).


svn path=/trunk/mcs/; revision=55309
2006-01-10 17:10:28 +00:00
Atsushi Eno 0ac61156cf 2006-01-10 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : XmlSchemaDatatypeTests.cs was missing.
	  collected sys.xml.schema lines.

	* XmlSchemaDatatypeTests.cs : oops sys.col.generic is NET_2_0.


svn path=/trunk/mcs/; revision=55291
2006-01-10 12:57:37 +00:00
Gert Driesen 91a95ca4e1 * System.Xml_test.dll.sources: Added SoapSchemaExporterTests.cs,
SoapReflectionImporterTests.cs, XmlSchemaImporterTests.cs.
* XmlReflectionImporterTests.cs: Added numerous tests. No longer
derive from Assertion.
* SoapReflectionImporterTests.cs: Added numerous tests.
* XmlSchemaImporterTests.cs: Added numerous tests.
* XmlSchemaExporterTests.cs: Added numerous tests.
* SoapSchemaExporterTests.cs: Added numerous tests.

svn path=/trunk/mcs/; revision=55191
2006-01-07 18:52:24 +00:00
Gert Driesen 8d6889edd0 * XmlSerializerTests.cs: Added serialization test for XmlSchema.
* XmlSchemaExporterTests.cs: Added tests for class, IXmlSerializable
and primitives.
* System.Xml_test.dll.sources: Added XmlSchemaExporterTests.cs.

svn path=/trunk/mcs/; revision=54898
2005-12-28 14:33:50 +00:00
Gert Driesen f42513507a * XmlTextWriterTests.cs: Improved coverage of xml prefix tests.
* XsltCompileExceptionTests.cs: Added tests for ctors.
* XsltExceptionTests.cs: Added tests for ctors.
* XslTransformTests.cs: Added tests for validation of <xsl:output>
attributes.
* System.Xml_test.dll.sources: Added XsltCompilerExceptionTests.cs and 
XsltExceptionTests.cs.
* IXsltContextFunction.cs: Fixed line endings (all CRLF).
* IXsltContextVariable.cs: Fixed line endings (all CRLF).
* XsltContext.cs: Fixed line endings (all CRLF).
* XsltCompileException.cs: Fixed line endings (all CRLF).
Fixed message to correspond with both MS.NET 1.x and 2.0.
* XslTransform.cs: Fixed line endings (all CRLF).
* XsltArgumentList.cs: Fixed line endings (all CRLF).
* XsltException.cs: Fixed line endings (all CRLF). Fixed message to
correspond with MS.NET 1.x and 2.0.
* XslVariable.cs: Beautify error messages.
* XslElement.cs: Same.
* XslAvt.cs: Same.
* XslAttribute.cs: Same.
* XslApplyTemplates.cs: Same.
* XslTemplateContent.cs: Same.
* XslCallTemplate.cs: Same.
* XslCopy.cs: Same.
* XslChoose.cs: Same.
* ScriptCompilerInfo.cs: Fixed line endings.
* XslStylesheet.cs: Beautify error messages.
* Debug.cs: Fixed line endings.
* XslOutput.cs: Indent is now bool instead of string, use
MoveToAttribute to navigate through attributes instead of using
GetAttribute, as we also need to distinguish attributes with
zero-length value from attributes that are not specified for
correct implementation of DOCTYPE. Implemented validation for
value of "omit-xml-declaration", "standalone" and "indent".
We now throw a XsltCompileException for unknown attribute.
* XmlWriterEmitter.cs: only skip WriteDocType is systemId is null.
* HtmlEmitter.cs: XslOutput.Indent is now bool. Fixed WriteDocType
to match MS.NET.
* XmlDecimalFormat.cs: Beautify error messages.
* XslTemplate.cs: Beautify error messages.
* GenericOutputter.cs: XslOutput.Indent is now bool.
* Compiler.cs: Beautify error messages.

svn path=/trunk/mcs/; revision=54780
2005-12-23 15:32:55 +00:00
Atsushi Eno d4caf7151f 2005-12-14 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : several fixes.
	  - Unless ReadState is Interactive, all name stuff should return "". 
	  - Refactored Read() to work fine when input navigator is Root.
	  - Fixed all MoveTo*Attribute() methods match with other XmlReaders.
	  - Namespace nodes were not handled fine in MoveTo*Attribute().

	* XPathNavigatorReaderTests.cs : new file for testing ReadSubtree()
	  and all dependent members.

	* System.Xml_test.dll.sources: Added XPathNavigatorReaderTests.cs.


svn path=/trunk/mcs/; revision=54364
2005-12-14 15:59:23 +00:00
Atsushi Eno 9af8eedec3 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : ReplaceSelf() should allow document fragment.
	  Moved implementation to XPathEditableDocument.

	* XPathEditableDocument.cs : implement ReplaceSelf() here.

	* System.Xml_test.dll.sources: Added XmlAssert.cs.

	* XmlAssert.cs : new file.

	* XPathEditableNavigatorTests.cs : added tests that passes empty
	  string to editor methods. Added tests for ReplaceSelf().


svn path=/trunk/mcs/; revision=54278
2005-12-13 12:09:02 +00:00
Atsushi Eno 23b916eda1 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : (CreateFragmentReader) return XmlReader that
	  considers current namespace contexts.

	* XPathEditableNavigatorTests.cs : new file for testing all editor
	  functionality in XPathNavigator.

	* System.Xml_test.dll.sources: Added XPathEditableNavigatorTests.cs.


svn path=/trunk/mcs/; revision=54270
2005-12-13 04:03:36 +00:00
Sebastien Pouliot 88d4de5a43 2005-08-31 Sebastien Pouliot <[email protected]>
* Makefile: /unsafe isn't required to build System.Xml.
	* System.Xml_test.dll.sources: Added new CAS unit tests.


svn path=/trunk/mcs/; revision=49180
2005-08-31 13:13:58 +00:00
Gert Driesen 3fb3755546 * ComplexDataStructure.cs: Fixed test due to change in default value
of XmlArrayItemAttribute.IsNullable.
* SoapAttributeAttributeTests.cs: Added tests for default values.
* SoapElementAttributeTests.cs: Added tests for default values.
* SoapEnumAttributeTests.cs: Added tests for default values.
* SoapIncludeAttributeTests.cs: Added tests for default values.
* SoapSchemaMemberTests.cs: Added tests for default values.
* SoapTypeAttributeTests.cs: Added tests for default values.
* XmlAnyElementAttributeTests.cs: Added tests for default values.
* XmlArrayAttributeTests.cs: Added tests for default values.
* XmlArrayItemAttributeTests.cs: Added tests for default values.
* XmlAttributeAttributeTests.cs: Added tests for default values.
* XmlChoiceIdentifierAttributeTests.cs: Added tests for default values.
* XmlElementAttributeTests.cs: Added tests for default values.
* XmlEnumAttributeTests.cs: Added tests for default values.
* XmlIncludeAttributeTests.cs: Added tests for default values.
* XmlRootAttributeTests.cs: Added tests for default values.
* XmlTextAttributeTests.cs: Added tests for default values.
* XmlTypeAttributeTests.cs: Added tests for default values.
* System.Xml_test.dll.sources: Added tests for default values of Xml 
Serialization attribute classes.
* SoapAttributeAttribute.cs: Return zero-length string if AttributeName or
DataType are null.
* SoapEnumAttribute.cs: Return zero-length string if Name is null.
* SoapIncludeAttribute.cs: Avoid using property in ctor.
* SoapSchemaMember.cs: Return zero-length string if MemberName is
null. MemberType should be XmlQualifiedName.Empty by default.
* SoapTypeAttribute.cs: Return zero-length string if TypeName is
null. Avoid using property in ctor.
* XmlArrayAttribute.cs: Return zero-length string if ElementName is
null. Avoid using property in ctor.
* XmlArrayItemAttribute.cs: IsNullable must be false by default.
Return zero-length string if DataType or ElementName are null. Avoid
using property in ctor.
* SoapElementAttribute.cs: Return zero-length string when DataType
or ElementName are null. Avoid using property in ctor.
* XmlAnyElementAttribute.cs: Return zero-length string when Name is
null. Avoid using property in ctor.
* XmlAttributeAttribute.cs: Avoid using property in ctor. Return
zero-length string if AttributeName or DataType are null.
* XmlChoiceIdentifierAttribute.cs: Return zero-length string when
MemberName is null.
* XmlElementAttribute.cs: Return zero-length string when DataType or
ElementName are null. Avoid using property in ctor.
* XmlEnumAttribute.cs: Avoid using property in ctor.
* XmlIncludeAttribute.cs: Avoid using property in ctor.
* XmlReflectionImporter.cs: AttributeName, ElementName and DataType
can no longer be null. Use check for zero-length string to determine
whether they are set. Corrected exception message when DataType is
set for complex type.
* XmlRootAttribute.cs: Return zero-length string if DataType or
ElementName are null. Avoid using property in ctor.
* XmlTextAttribute.cs: Return zero-length string if DataType is null.
* XmlTypeAttribute.cs: Return zero-length string if TypeName is null.

svn path=/trunk/mcs/; revision=47896
2005-08-01 18:45:29 +00:00
Atsushi Eno e7869b768c 2004-05-05 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : removed XmlValueConverter (obsoleted).
	* System.Xml_test.dll.sources : removed XPathAtomicValue (obsoleted).


svn path=/trunk/mcs/; revision=44076
2005-05-05 11:17:01 +00:00
Atsushi Eno c3ebf1694a 2004-09-13 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XPathAtomicValueTests.cs.

svn path=/trunk/mcs/; revision=33792
2004-09-13 04:06:22 +00:00
Atsushi Eno 15d11151e9 2004-09-08 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XmlWriterSettingsTests.cs.

svn path=/trunk/mcs/; revision=33565
2004-09-08 08:42:38 +00:00
Atsushi Eno 63099a1f12 2004-09-07 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XmlReaderSettingsTests.cs.
	  XmlReaderCommonTests.cs and XmlSchemaSetTests.cs were missing.

svn path=/trunk/mcs/; revision=33474
2004-09-07 06:37:05 +00:00
Raja R Harinath 8b7ae3326c Remove trailing empty lines
svn path=/trunk/mcs/; revision=29093
2004-06-09 08:21:21 +00:00
Atsushi Eno 7e06f9555c 2004-03-31 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources :
	  Added new test files: nist_dom stuff, XmlSecureResolverTests.cs,
	  XmlSchemaAssertion.cs, MsxslScriptTests.cs.

svn path=/trunk/mcs/; revision=24858
2004-03-31 17:39:50 +00:00
Lluis Sanchez e5aad3e5cf * System.Xml_test.dll.sources: Added
System.Xml.Serialization/ComplexDataStructure.cs.

svn path=/trunk/mcs/; revision=24543
2004-03-24 19:33:16 +00:00
Nick Drochak f12a1a927f 2004-02-22 Nick Drochak <[email protected]>
* System.Xml_test.dll.sources : Removed XmlSchemaAssertion.cs. It does
	not seem to be in CVS.  This was breaking the build on windows.

svn path=/trunk/mcs/; revision=23315
2004-02-22 01:53:25 +00:00
Atsushi Eno 35865c7685 2004-02-17 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : Added XmlEntityTests.cs and
	  XmlDocumentEventTests.cs.

svn path=/trunk/mcs/; revision=23185
2004-02-17 20:17:08 +00:00
Lluis Sanchez 07dbc81ee3 * System.Xml_test.dll.sources : Added test files
System.Xml.Serialization/DeserializeTests.cs
		System.Xml.Serialization/XmlAttributesTests.cs
		System.Xml.Serialization/XmlReflectionImporterTests.cs
		System.Xml.Serialization/XmlSerializationWriterTests.cs

svn path=/trunk/mcs/; revision=21320
2003-12-18 12:56:23 +00:00
David Sheldon 74c080a8ec 2003-12-17 David Sheldon <[email protected]>
* System.Xml_test.dll.sources : Added XmlSchemaBuiltInDatatypeTests.cs

  * Added XmlSchemaBuiltInDatatypeTests.cs : Currently fails due to
    bug 52274.


  This tests the changes to BuiltInDatatype that I checked in this morning.

svn path=/trunk/mcs/; revision=21288
2003-12-17 17:38:08 +00:00
Atsushi Eno 171e068dc7 2003-12-08 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : patch by David Sheldon. Added XmlSchemaLengthFacetTests.cs.

svn path=/trunk/mcs/; revision=20853
2003-12-08 04:38:42 +00:00
Atsushi Eno 78aa4de58c 2003-08-24 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XsdParticleValidationState.cs
	  and XsdValidatingReader.cs.
	* System.Xml_test.dll.sources : added XsdParticleValidationTests.cs
	  and XsdValidatingReaderTests.cs.

svn path=/trunk/mcs/; revision=17560
2003-08-24 19:10:01 +00:00
Gonzalo Paniagua Javier 9aba3f2578 New build system
svn path=/trunk/mcs/; revision=16200
2003-07-14 11:55:32 +00:00