Commit Graph
36 Commits
Author SHA1 Message Date
Gert Driesen 90dabe27b9 * DataContainerTest.cs: Code formatting.
* DbDataAdapterTest.cs: Added test for 2.0 methods.

svn path=/trunk/mcs/; revision=98818
2008-03-23 09:35:40 +00:00
Gert Driesen c231373769 * DataColumn.cs: Fixed ParamName of ArgumentNullException. Modified
exception message for invalid DateTimeMode value to match MS. Code
formatting.
* DbDataPermissionAttribute.cs: In KeyRestrictionBehavior, reuse
ExceptionHelper.CheckEnumValue.   
* ExceptionHelper.cs: Use same exception message for both 1.0 and 2.0.
* Index.cs: Fixed compiler warnings. Code formatting.
* SqlCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* OleDbCommand.cs: Use ExceptionHelper.CheckEnumValue for enum checks.
* DBDataPermissionAttributeTest.cs: Improved test for invalid
KeyRestrictionBehavior. Fixed line endings.
* DataColumnTest.cs: No longer derive from deprecated Assertion class.
Code formatting. Added test for DateTimeMode.

svn path=/trunk/mcs/; revision=87866
2007-10-21 13:26:43 +00:00
Gert Driesen 3930b4b9cf * System.Data_test.dll.sources: Added DbDataAdapterTest.cs,
OdbcCommandTest.cs, OdbcConnectionTest.cs, OdbcDataAdapterTest.cs, 
OleDbCommandTest.cs, OleDbConnectionTest.cs, OleDbDataAdapterTest.cs, 
SqlDataAdapterTest.cs.
* DbDataAdapter.cs: Implemented UpdateBatchSize setter.
* DataAdapter.cs: In FillLoadOption setter, ensure value is valid.
Modified MissingMappingAction and MissingSchemaAction setters to use
ExceptionHelper.CheckEnumValue to validate value. Spaces to tabs and
code formatting.
* ExceptionHelper.cs: Added CheckEnumValue method and modified
InvalidEnumValueException method to return AORE on 2.0 profile. Added
ConnectionClosed method that returns an InvalidOperationException.
* OleDbDataAdapter.cs: In default ctor, set SelectCommand to null.
Only initialize SelectCommand in ctors. Use direct assignment in
IDbDataAdapter implementation.
* OleDbCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Added implementation for UpdatedRowSource.
* OleDbConnection.cs: Moved initialization of gda to Open ().
Avoid unnecessary initialization. Return zero-length string if
ConnectionString is null. If getters to Database, DataSource and
Provider return zero-length string if the connection is closed.
In ServerVersion, BeginTransaction and GetSchema, throw an
InvalidOperationException if connection is closed.
* OdbcCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Spaces to tabs and code formatting.
* OdbcError.cs: Fixed typo in exception message.
* OdbcConnection.cs: Return zero-length string if ConnectionString is
null. In getters for Database, DataSource and Driver return a
zero-length string if connection is closed. In BeginTransaction and
GetSchema throw InvalidOperationException if connection is closed.
Added override for GetSchema (string, string []). Use string.Empty
instead of "".
* OdbcDataAdapter.cs: Avoid unnecessary initializations. Use direct
assignment in IDbDataAdapter implementation. In default ctor, set
SelectCommand to null.
* SqlCommand.cs: Added constant for default CommandTimeout, instead
of using a magic number. Avoid unnecessary initialization. Fixed
default value for DesignTimeVisible. Return zero-length string if
CommandText is null. Use ExceptionHelper.InvalidEnumValueException
to avoid code duplication. Spaces to tabs and code formatting.
* SqlConnection.cs: Use different default package size on 2.0 profile.
Added constants for default values, instead of using magic numbers.
Avoid unnecessary initialization. In PacketSize, return default or
configured packet size when connection is not open. Use 
ExceptionHelper.ConnectionClosed instead of local method. Removed   
use of some hardcoded values in SetDefaultConnectionParameters, and
use Environment.MachineName as default WorkstationId instead of 
DNS host name. Code formatting.
* SqlDataAdapter.cs: In default ctor, set SelectCommand to null.
Avoid unnecessary initializations. Use direct assignment in   
IDbDataAdapter implementation. Fixed exception message for negative
UpdateBatchSize. In Dispose override, make sure to invoke base
method.
* DbDataAdapterTest.cs: Added test for UpdateBatchSize.
* DataAdapterTest.cs: Added tests for AcceptChangesDuringFile,   
AcceptChangesDuringUpdate, ContinueUpdateOnError, FillLoadOption,
MissingMappingAction, MissingSchemaAction and                      
ReturnProviderSpecificTypes.
* OdbcDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OdbcDataReaderTest.cs: fixed line endings.
* OdbcCommandTest.cs: Added tests for ctors and CommantText.
* OdbcConnectionTest.cs: Removed original test that relied on MySQL.
Added ctor tests. Added tests for BeginTransaction, GetSchema and 
ServerVersion with connection that is closed.
* OleDbDataAdapterTest.cs: Added tests for ctors, DeleteCommand, 
InsertCommand, SelectCommand, UpdateCommand and Dispose.
* OleDbCommandTest.cs: Added tests for ctors and CommandText.
* OleDbConnectionTest.cs: Added tests for ctors and ConnectionString. 
Added tests for BeginTransaction, GetSchema and ServerVersion with connection that is closed.
* SqlCommandTest.cs: Added tests for ctors and CommantText. 
* SqlConnectionTest.cs: Added tests for ctors, ConnectionString and 
ServerVersion.
* SqlDataAdapterTest.cs: Added tests for ctors, DeleteCommand,
InsertCommand, SelectCommand, UpdateCommand, UpdateBatchSize and 
Dispose.

svn path=/trunk/mcs/; revision=87859
2007-10-20 23:16:52 +00:00
Gert Driesen 9605b0fd6c * DbTransactionTest.cs: Enabled test for bug #325397.
svn path=/trunk/mcs/; revision=87837
2007-10-19 17:15:32 +00:00
Gert Driesen 720e9720a7 * DbTransactionTest.cs: Added test for bug #325397.
svn path=/trunk/mcs/; revision=87609
2007-10-16 18:23:21 +00:00
Gert Driesen e86ef7ce8d * app_test_2.0.config: Modified DbProviderFactories to allow testing
of clear and remove nodes.
* DbProviderFactoriesConfigurationHandler.cs: Added support for
clear node.
* DbProviderFactoriesConfigurationHandlerTest.cs: Changed test to also
verify behavior for clear and remove nodes.

svn path=/trunk/mcs/; revision=73663
2007-03-03 20:15:49 +00:00
Gert Driesen a789895532 * DbProviderFactoriesConfigurationHandlerTest.cs: Fixed tests to
pass on MS. Added NotWorking test to check whether DbProviderFactories
that are defined on machine config are available.
* ConnectionStringsSectionHandler.cs: Removed since the 2.0 config
API is in place.
* DbProviderFactoriesConfigurationHandler.cs: Fixed name of DataSet
to match MS. Removed SupportedClasses column since this is no longer
part of 2.0 profile (removed during beta). Throw
ConfigurationErrorsException for unrecognized elements. Mark methods
private, and refactor them. Added FIXMEs for missing checks for
unrecognized attributes.
* DbProviderFactories.cs: Marked constants internal. Replaced spaces
with tabs. Use ConfigurationManager.GetSection instead of deprecated
ConfigurationSettings.GetConfig.
* app_test_2.0.config: Fixed assembly qualified names of config
handler. Removed usage of ConnectionStringsSectionHandler, since
this is now handled by 2.0 config system. Spaces to tabs.
* System.Data.dll.sources: Removed ConnectionStringsSectionHandler.

svn path=/trunk/mcs/; revision=73659
2007-03-03 15:09:07 +00:00
Atsushi Eno a57b6ac702 2007-02-19 Atsushi Enomoto <[email protected]>
* DbProviderFactoriesConfigurationHandler.cs : "support" attribute is
	  optional. Fixed bug #80894.

	* DbProviderFactoriesConfigurationHandlerTest.cs : test for #80894.


svn path=/trunk/mcs/; revision=73093
2007-02-19 07:32:05 +00:00
Marek Habersack a9cc4931de really revert teh changes
svn path=/trunk/mcs/; revision=72881
2007-02-15 00:59:18 +00:00
Marek Habersack f877231cae The SupportedClasses column is no longer valid
svn path=/trunk/mcs/; revision=72878
2007-02-15 00:08:16 +00:00
Miguel de Icaza cf3eed8712 2006-12-11 Miguel de Icaza <[email protected]>
* DataAdapter.cs: Removed TODO, NotSupportedException was the
	correct implementation. 


svn path=/trunk/mcs/; revision=69344
2006-12-11 18:26:48 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Senganal T dbcfcb27fe 2006-07-13 Senganal T <[email protected]>
* Test/System.Data.Common/DBDataPermissionTest.cs : Removed invalid tests

	* System.Data.Common/SchemaInfo.cs DbDataAdapter.cs DbConnectionOptions.cs DbParameter.cs 
	DbMetaDataColumnNames.cs DbTransaction.cs DataTableMapping.cs DataAdapter.cs 
	FieldNameLookup.cs DbDataRecord.cs DataColumnMappingCollection.cs DbCommand.cs 
	DbDataPermission.cs DbProviderFactory.cs DbCommandBuilder.cs DbConnectionString.cs 
	RowUpdatedEventArgs.cs DbDataReader.cs DbConnectionStringBuilder.cs DbConnection.cs 
	DataTableMappingCollection.cs :
		2.0 Api fixes

	* System.Data.SqlClient/SqlClientFactory.cs SqlCommand.cs SqlConnectionFactory.cs 
	SqlClientPermission.cs SqlParameterCollection.cs SqlDataReader.cs 
	SqlConnection.cs SqlParameter.cs SqlTransaction.cs :
		2.0 Api fixes

	* System.Data.Odbc/OdbcTransaction.cs OdbcCommand.cs OdbcConnectionFactory.cs 
	OdbcPermission.cs OdbcDataReader.cs OdbcParameterCollection.cs 
	OdbcConnection.cs OdbcFactory.cs OdbcParameter.cs :
		2.0 Api fixes

	* System.Data.OleDb/OleDbCommand : 2.0 Api fixes

	* System.Data.dll.sources: 
		- Added to build :
			System.Data.Common/DbMetaDataColumnNames.cs
		- Removed from build :
			System.Data.Common/DbCommandOptionalFeatures.cs
			System.Data.Common/DbCommandSet.cs
			System.Data.Common/DbProviderSupportedClasses.cs
			System.Data.Common/SchemaLocation.cs
			System.Data.Odbc/OdbcConnectionFactory.cs
			System.Data.SqlClient/SqlConnectionFactory.cs
			System.Data.ProviderBase/DbCommandBase.cs
			System.Data.ProviderBase/DbConnectionBase.cs
			System.Data.ProviderBase/DbConnectionFactory.cs
			System.Data.ProviderBase/DbConnectionInternal.cs
			System.Data.ProviderBase/DbConnectionPoolCounters.cs
			System.Data.ProviderBase/DbConnectionPoolOptions.cs
			System.Data.ProviderBase/DbDataReaderBase.cs
			System.Data.ProviderBase/DbMetaDataFactory.cs
			System.Data.ProviderBase/DbParameterBase.cs
			System.Data.ProviderBase/DbParameterCollectionBase.cs
			System.Data.ProviderBase/DbReferenceCollection.cs

	* Makefile : Add System.Transactions library reference to net_2_0 PROFILE


svn path=/trunk/mcs/; revision=62561
2006-07-13 14:19:17 +00:00
Boris Kirzner 151ceb1347 Fix spelling
svn path=/trunk/mcs/; revision=58174
2006-03-20 07:49:05 +00:00
Boris Kirzner 315417b16e Ifdef code that is not supposed to pass in TARGET_JVM by now
svn path=/trunk/mcs/; revision=58157
2006-03-19 16:32:53 +00:00
Raja R Harinath 1d72d9b102 * DbConnectionStringBuilder.cs (ICollection.CopyTo): Use
_dictionary, not 'this' in cast.

svn path=/trunk/mcs/; revision=57033
2006-02-18 18:23:45 +00:00
Raja R Harinath aea2046ac6 * DbConnectionStringBuilderTest.cs
(ICollectionCopyToTest, NegICollectionCopyToTest): Enable.
(IDictionaryCopyToTest, NegIDictionaryCopyToTest): Delete.

svn path=/trunk/mcs/; revision=57032
2006-02-18 17:56:59 +00:00
Sebastien Pouliot cae7728720 2005-09-22 Sebastien Pouliot <[email protected]>
* DBDataPermissionAttributeTest.cs: Removed *Choice security actions.


svn path=/trunk/mcs/; revision=50480
2005-09-22 13:36:46 +00:00
Raja R Harinath 727d62db26 Remove UTF8 marker. The file is ASCII.
svn path=/trunk/mcs/; revision=49058
2005-08-29 09:34:57 +00:00
Sureshkumar T 3671c260e6 In Test/System.Data.Common:
2005-04-04  Sureshkumar T  <[email protected]>

	* DbConnectionStringBuilderTest.cs: few more tests ignored for now
	because of gmcs incompatiability with csc. generic types are not
	being able to be assigned to non-generic types though implements
	non-generic interface.

In .:
2005-04-04  Sureshkumar T  <[email protected]>

	* System.Data_test.dll.sources: Added
	Test/System.Data.Common/DbConnectionStringBuilderTest.cs

	* System.Data.dll.sources: Added
	System.Data.Common/DbConnectionStringBuilder.cs


svn path=/trunk/mcs/; revision=42506
2005-04-04 09:42:19 +00:00
Sureshkumar T f6b6dc76a5 In System.Data.Common:
2005-03-01  Sureshkumar T  <[email protected]>

	* ConnectionStringsSectionHandler.cs: Added. configuration section
	handler for section "connectionStrings". This handler is a ad hoc
	solution till the new configuration API is available in mono.

In .:
2005-03-01  Sureshkumar T  <[email protected]>

	* System.Data.dll.sources: Added System.Data.Common/
	ConnectionStringsSectionHandler.cs.
	* app_test_2.0.config: Changed the configuration handler for
	seciton "connectionStrings".

In Test/System.Data.Common:

	* ConnectionStringsSectionTest.cs : removed console.writeline-s.

svn path=/trunk/mcs/; revision=41307
2005-03-01 05:48:39 +00:00
Sureshkumar T c1857bc34d In Test/System.Data.Common:
* ConnectionStringsSectionTest.cs: Added file. Tests for
	System.Configuration.ConnectionStringsSection class. This is used
	for managing connection strings information for provider factory.

2005-02-22  Sureshkumar T  <[email protected]>
	
In .:
        
	* System.Data_test.dll.sources: Added
	System.Data.Common/ConnectionStringsSectionTest.cs
	
2005-02-22  Sureshkumar T  <[email protected]>

svn path=/trunk/mcs/; revision=41040
2005-02-22 14:05:40 +00:00
Sureshkumar T c64967424f removed svn:executable property from source files.
svn path=/trunk/mcs/; revision=41032
2005-02-22 11:10:30 +00:00
Sureshkumar T b55443de1c In .:
2005-02-22  Sureshkumar T  <[email protected]>

	* Makefile: added dependancy for test-lib to create
	$(test-lib).config. These configuration entries are used currently
	by Test/System.Data.Common/DbProviderFactories-
	ConigurationHalderTest.cs tests. Future tests can also add
	configuration information in configuration file
	app_test.2.0.config. This is for 2.0 profile only.

	* System.Data_test.dll.sources: 
	Added System.Data.Common/DbProviderFactoriesConfigurationHandlerTest.cs.

	* System.Data.dll.sources: 
	Added System.Data.SqlClient/SqlClientFactory.cs
	Added System.Data.SqlClient/SqlDataSourceEnumerator.cs

In Test/System.Data.Common:
2005-02-22  Sureshkumar T  <[email protected]>

	* DbProviderFactoriesConfigurationHandlerTest.cs: Tests for
	DbProviderFactoriesConfigurationHandler class.


svn path=/trunk/mcs/; revision=41029
2005-02-22 10:36:04 +00:00
Atsushi Eno acd4da0ec6 2005-01-14 Atsushi Enomoto <[email protected]>
* DbDataPermissionAttribute.cs, PermissionHelper.cs :
	  fixed some incompatible type of exception between 2.0 and 1.x.
	* DataContainer.cs :
	  Wrap exceptions thrown by SetValue() within ArgumentException.

	* SqlClientPermissionTest.cs, SqlClientPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.

	* OleDbPermissionTest.cs, OleDbPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.

	* OdbcPermissionTest.cs, OdbcPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.

	* DBDataPermissionTest.cs, DBDataPermissionAttributeTest.cs:
	  Fixed some incompatible type of exception between 2.0 and 1.1.



svn path=/trunk/mcs/; revision=38945
2005-01-14 17:03:07 +00:00
Atsushi Eno 4bc3f136b0 2005-01-14 Atsushi Enomoto <[email protected]>
* DataTableMappingCollectionTest.cs,
	  DataColumnMappingCollectionTests.cs : Equals() and Remove() contains
	  invalid attempt to add one map to two collections, which is rejected
	  under MS.NET 1.1 sp1.



svn path=/trunk/mcs/; revision=38927
2005-01-14 10:22:57 +00:00
Sureshkumar T 8e13652448 In System.Data.Common:
2004-11-22  Sureshkumar T  <[email protected]>

	* DbConnectionStringBuilder.cs: Class for helping creation of db
	connection strings added.

In Test/System.Data.Common:
2004-11-22  Sureshkumar T  <[email protected]>

	* DbConnectionStringBuilderTest.cs: Test cases for
	DbConnectionStringBuilder class. These are independant tests.


svn path=/trunk/mcs/; revision=36382
2004-11-22 11:07:51 +00:00
Sebastien Pouliot 32639845bf 2004-09-14 Sebastien Pouliot <[email protected]>
* DBDataPermissionTest.cs: New. Unit tests for DBDataPermission.

svn path=/trunk/mcs/; revision=33901
2004-09-14 19:51:48 +00:00
Sebastien Pouliot cdeb4c4f81 2004-09-13 Sebastien Pouliot <[email protected]>
* DBDataPermissionAttributeTest.cs: New. Unit tests for DBData
	PermissionAttribute.

svn path=/trunk/mcs/; revision=33825
2004-09-13 22:46:24 +00:00
Umadevi S 77b8bc4bc3 2004-08-13 Umadevi S <[email protected]>
* Added File DataContainerTest

svn path=/trunk/mcs/; revision=32299
2004-08-13 07:06:45 +00:00
Sachin Kumar 8ece8b55cd Added license and copyright
svn path=/trunk/mcs/; revision=29770
2004-06-17 12:42:08 +00:00
Umadevi S bcde523fb0 2004-06-10 Umadevi S <[email protected]>
* Corrected GetTableMappingBySchemaAction for DataTableMappingCollectionTest

svn path=/trunk/mcs/; revision=29160
2004-06-10 05:51:00 +00:00
Umadevi S 444b551e2d 2004-06-09 Umadevi S <[email protected]>
* Correct Add, InserAt testcases for DataTableMappingCollection

svn path=/trunk/mcs/; revision=29104
2004-06-09 10:32:13 +00:00
Umadevi S 859672405a 2004-06-09 Umadevi S <[email protected]>
* Corrected Remove method testcase

svn path=/trunk/mcs/; revision=29096
2004-06-09 09:00:02 +00:00
Umadevi S 033a269ef9 2004-06-08 Umadevi S <[email protected]>
* Corrected the contains testcase to test for invalidcastexception

svn path=/trunk/mcs/; revision=29023
2004-06-08 10:17:16 +00:00
Umadevi S c5faa10091 2004-05-27 Umadevi S <[email protected]>
* Added Classes DataColumnMappingCollectionTest and DataTableMappingCollectionTest

svn path=/trunk/mcs/; revision=28230
2004-05-27 07:20:07 +00:00