24 Commits
Author SHA1 Message Date
Alexander Köplinger 662524f2e1 [System.Data] Switch tests to use embedded test resources 2018-09-27 22:46:53 +02:00
Niklas Therning c0584ca8ee Fixes line ending issues in System.Data tests
To make them run successfully on Windows.
2016-09-20 17:12:59 +02:00
Atsushi Eno 81e07b6e1a [Sys.Data] Fix tests regarding XmlTextWriter EOL handling.
MS referencesource changed XmlTextWriter behavior regarding EOL so that
now it preserves CRLF as is, instead of replacing them with
XmlWriterSettings.NewLineChars (mono implementation behavior).

There are some tests that depend on old behavior. The entire points of
those XmlDataDocument tests are not about checking EOLs, so just replace
the test XML file to not contain CRLF.
2015-03-02 11:36:39 +08:00
Marek Safar 3f8e66f47c Fix some failing tests 2012-06-14 15:08:08 +01:00
Duncan Mak 9da11055f5 [System.Data/Test] Don't hard-code newline in the string, fixes failure in DataTableReadXmlSchemaTest.TestSampleFileImportSimple. 2012-06-01 17:53:43 -04:00
Gert Driesen 9beafa005e * XmlDataDocumentTest.cs: Change spaces to tabs. Removed CWLs.
Restore original culture on teardown.

svn path=/trunk/mcs/; revision=122224
2008-12-30 02:40:56 +00:00
Raja R Harinath 7301aed0f3 In System.Data:
* DataSetAssertion.cs: Don't derive from 'Assertion'.  Modernize.
	* DataSetInferXmlSchemaTest.cs, DataSetReadXmlSchemaTest.cs,
	DataSetReadXmlTest.cs, DataSetTest.cs, DataTableLoadRowTest.cs,
	DataTableReaderTest.cs, DataTableTest.cs: Modernize.

In System.Xml:
	* XmlDataDocumentTest.cs: Modernize.

svn path=/trunk/mcs/; revision=69038
2006-12-05 14:31:47 +00:00
Senganal T 483fc3041b 2006-04-19 Senganal T <[email protected]>
* Test/System.Xml/XmlDataDocumentTest2.cs : Test if DataSet schema with whitespace
	characters are saved and loaded correctly, Test if null values are 
	correctly saved and loaded, Test if creating a row in Dataset is 
	reflected in the document.
	* Test/System.Data/DataSetTest2.cs : Test if ConstraintName with whitespace is saved
	correctly.
	* System.Xml/XmlDataDocument.cs : 
		- Use encoded names for DataSet schema.
		- StringToElement : Return 'null' if the value is empty string
		or null.
		- OnDataTableRowAdded : Add the row elements to the tablenode if
		they are not already added.
	* System.Data/XmlHelper.cs : A helper class for encoding/decoding schema names.
	Caches the Schema names to minimize encoding/decoding operations and
	duplicate strings created.
	* System.Data/XmlSchemaWriter : 
		- Use XmlHelper for encoding/decoding schema names.
		- Encode ConstraintNames when writing as xml.
	* System.Data/DataSet.cs
	* System.Data/XmlDataReader.cs
	* System.Data/XmlDataInferenceLoader.cs
	* System.Data/XmlSchemaDataImporter.cs
		- Use XmlHelper for encoding/decoding schema names.
	* System.Data/DataTableCollections : Minor code refactor.
	* System.Data/DataRow.cs : Create XmlElement only if required.


svn path=/trunk/mcs/; revision=59624
2006-04-19 08:04:44 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Atsushi Eno bb1ebb19b8 2004-06-18 Atsushi Enomoto <[email protected]>
* XmlDataDocumentTest2.cs : When line ending is LF, CR is preserved.
	  To reproduce on windows too, set NewLine as LF.

svn path=/trunk/mcs/; revision=29874
2004-06-18 12:32:14 +00:00
Sachin Kumar 8ece8b55cd Added license and copyright
svn path=/trunk/mcs/; revision=29770
2004-06-17 12:42:08 +00:00
Atsushi Eno 8d885b0916 2004-05-12 Atsushi Enomoto <[email protected]>
* XmlDataDocumentTest.cs : use Environment.NewLine. Added more tests.
	* XmlDataDocumentTest2.cs : Test nested relationship, detached row
	  state, and unmapped element as well.

svn path=/trunk/mcs/; revision=27192
2004-05-12 19:51:34 +00:00
Atsushi Eno 8bc824bf78 2004-04-19 Atsushi Enomoto <[email protected]>
* region.xsd : To make sure that "msdata" prefix has nothing to do
	  with the actual "msdata namespace", modified namespace URI string.
	  (This modification never affects on the results under MS.NET.)
	* XmlDataDocumentTest.cs : Make sure Read2() loaded the table just fine.

svn path=/trunk/mcs/; revision=25679
2004-04-19 10:05:02 +00:00
Atsushi Eno 4287265b53 2004-04-13 Atsushi Enomoto <[email protected]>
* XmlDataDocumentTest.cs : still path problem.

svn path=/trunk/mcs/; revision=25381
2004-04-13 04:59:06 +00:00
Atsushi Eno 10aa5cb906 2004-03-18 Atsushi Enomoto <[email protected]>
* XmlDataDocumentTest.cs : file path fixes.

svn path=/trunk/mcs/; revision=24280
2004-03-18 18:03:50 +00:00
Ville Palo 1ea805478b 2003-05-28 Ville Palo <[email protected]>
* XmlDataDocumentTest.cs: fixed some tests. Now works better on ms.net

svn path=/trunk/mcs/; revision=14969
2003-05-28 12:47:12 +00:00
Martin Willemoes Hansen 21e89c6946 * All tests inherits from Assertion, and
Assertion. prefixes removed

svn path=/trunk/mcs/; revision=14554
2003-05-13 20:12:53 +00:00
Martin Willemoes Hansen 46c1ae8f75 * Removed AllTests.cs, System.Data/AllTests.cs,
System.Data.SqlTypes/AllTests.cs,
          System.Xml/AllTests.cs,
          TheTests.cs
        * NUnit2ified makefile.gnu, data_linux_test.args
          System.Data/DataColumnCollectionTest.cs,
          System.Data/DataSetTest.cs,
          System.Data/DataColumnTest.cs,
          System.Data/DataTableTest.cs,
          System.Data/UniqueConstraintTest.cs,
          System.Data/ConstraintCollectionTest.cs,
          System.Data/DataRelationTest.cs,
          System.Data/ForeignKeyConstraintTest.cs,
          System.Data/ConstraintTest.cs,
          System.Data/DataRowCollectionTest.cs,
          System.Data/DataRowTest.cs,
          System.Data.SqlTypes/SqlBinaryTest.cs,
          System.Data.SqlTypes/SqlDateTimeTest.cs,
          System.Data.SqlTypes/SqlGuidTest.cs,
          System.Data.SqlTypes/SqlInt64Test.cs,
          System.Data.SqlTypes/SqlStringTest.cs,
          System.Data.SqlTypes/SqlBooleanTest.cs,
          System.Data.SqlTypes/SqlDecimalTest.cs,
          System.Data.SqlTypes/SqlInt16Test.cs,
          System.Data.SqlTypes/SqlMoneyTest.cs,
          System.Data.SqlTypes/SqlByteTest.cs,
          System.Data.SqlTypes/SqlDoubleTest.cs,
          System.Data.SqlTypes/SqlInt32Test.cs,
          System.Data.SqlTypes/SqlSingleTest.cs
          System.Xml/XmlDataDocumentTest.cs

svn path=/trunk/mcs/; revision=12623
2003-03-17 16:31:53 +00:00
Ville Palo be149e5918 2003-01-28 Ville Palo <[email protected]>
* XmlDataDocumentTest.cs: Fixed some tests

svn path=/trunk/mcs/; revision=10996
2003-01-28 17:55:37 +00:00
Ville Palo eb83e65c9e 2003-01-13 Ville Palo <[email protected]>
* XmlDataDocumentTest.cs: Added more tests

svn path=/trunk/mcs/; revision=10472
2003-01-13 18:39:48 +00:00
Ville Palo 53ea503c26 2002-12-16 Ville Palo <[email protected]>
* System.Xml/XmlDataDocumentTest.cs: some fixes.

svn path=/trunk/mcs/; revision=9705
2002-12-16 18:43:28 +00:00
Ville Palo 4ee28e267c 2002-12-14 Ville Palo [email protected]>
* System.Xml/XmlDataDocumentTest.cs: Added three new tests

svn path=/trunk/mcs/; revision=9639
2002-12-14 17:14:37 +00:00
Ville Palo 60d500f43f 2002-12-10 Ville Palo <[email protected]>
* System.Xml/XmlDataDocumentTest.cs: Added new tests
	* System.Xml/region.xml: Changed XmlDocument.

svn path=/trunk/mcs/; revision=9531
2002-12-10 17:19:48 +00:00
Ville Palo 013d711a33 2002-11-24 Ville Palo <[email protected]>
* System.Xml/XmlDataDocumentTest.cs: Added new test suite for
	XmlDataDocument.
	* System.Xml/store.xsd:
	* System.Xml/region.xsd
	* System.Xml/region.xml:
	* System.Xml/2books.xml: Needed by XmlDocumentTest.cs
	* AllTests.cs:
	* data_linux_test.args:Added XmlDataDocumentTest.cs

svn path=/trunk/mcs/; revision=9167
2002-11-24 15:39:02 +00:00