* SqlCommandTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlConnectionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
* SqlDataAdapterTest.cs: Added tests for Update. Fixed Fill_Test_Data,
Fill_Test_PriKey and Fill_Test_FillErrorTest to pass on SQL Server 7.0.
Avoid catching and rethrowing AssertionException. Minor improvements.
* SqlParameterTest.cs: Fixes for SQL Server 7.0 / TDS 7. Updated
ZeroLengthString to pass on 1.0 profile.
* SqlTransactionTest.cs: Fixes for SQL Server 7.0 / TDS 7.
svn path=/trunk/mcs/; revision=139242
* SqlDataReaderTest.cs (GetSqlBytesTest): Test case for GetSqlBytes
(GetProviderSpecificFieldTypeTest): Test case for GetProviderSpecificFieldTypeTest
(GetProviderSpecificValueTest): Test case for GetProviderSpecificValueTest
(GetProviderSpecificValueLowerBoundaryTest):
(GetProviderSpecificValueUpperBoundaryTest):
(GetProviderSpecificValuesTest): Test case for GetProviderSpecificValuesTest
(GetProviderSpecificValuesSmallArrayTest): Test case with an array smaller than no. of columns
(GetProviderSpecificValuesLargeArrayTest): Test case with an array larger than no. of columns
(GetProviderSpecificValuesNullTest): Test case for null parameters
* SqlParameterTest.cs (XmlSchemaTest): Test case for properties related to XML schema
(SourceColumnNullMappingTest): Test case for SourceColumnNullMappingTest
(ctor7Test): Test case to the constructor new in .net 2.0
* SqlParameterTest.cs (ParameterType): Corrected a bug in the test case regarding
default values of SqlDbType and DbType
(SqlDbTypeTest): Test for SqlDbType and DbType properties
(ResetSqlDbTypeTest): Test for ResetSqlDbType method
(ResetDbTypeTest): Test for ResetDbType method
* SqlParameterCollectionTest.cs (CopyToTest): Test case for CopyTo method
svn path=/trunk/mcs/; revision=76656
* SqlCommandTest.cs (BeginExecuteXmlReaderTest): Written test case for the method
BeginExecuteXmlReader.
(BeginExecuteXmlReaderExceptionTest): Written test case for the method BeginExecuteXmlReader
to check for InvalidOperationException.
(CloneObjTest): Written test case for the method Clone.
* SqlConnectionTest.cs (ChangePasswordNullConnStringTest): Written test case for the method
ChangePassword to check for null connection string.
(ChangePasswordNullPasswordTest): Written test case for the method ChangePassword to check for
null new password.
(ChangePasswordEmptyPasswordTest): Written test case for the method ChangePassword to check for
password as empty string.
(ChangePasswordExceedPasswordTest): Written test case for the method ChangePassword to check
if the password exceeds its permitted size.
* SqlClientFactory.cs: Created the class.
(CreatePermissionTest): Added a test case for the method CreatePermission.
2007-03-20 Nidhi Rawal <[email protected]>
* SqlConnectionStringBuilderTest.cs: Fixed the bug by including the
category sqlserver, in the absence of which none of the test-cases
were executing.
(TrustServerCertificateTest): Written test-case for the property TrustServerCertificate.
(TypeSystemVersionTest): Written test-case for the property TypeSystemVersion.
(UserInstanceTest): Written test-case for the property UserInstance.
(SettingUserInstanceTest): Written test-case for checking the connection string after
assigning the value for keyword User Instance.
(ContextConnectionTest): Written test-case for the property ContextConnection.
(SettingContextConnectionTest): Written test-case for checking the connection string after
assigning the value for keyword Context Connection.
* SqlCommandTest.cs (NotificationTest): Written test-case for property Notification.
(NotificationAutoEnlistTest): Written the test-case for property NotificationAutoEnlist.
* SqlConnectionTest.cs (FireInfoMessageEventOnUserErrorsTest): Written
test-case for the property FireInfoMessageEventOnUserErrors.
(StatisticsEnabledTest): Written test-case for the property StatisticsEnabled.
* SqlDataAdapterTest.cs (UpdateBatchSizeTest): Written test-case for the
property UpdateBatchSize.
(UpdateBatchSizeArgumentOutOfRangeTest): Written test-case for the ArgumentOutOfRange
exception for UpdateBatchSize property.
2007-03-19 Nidhi Rawal <[email protected]>
* SqlParameterTest.cs (CompareInfoTest): Written the test case
for property CompareInfo.
(LocaleIdTest): Written the test case for property LocaleId.
(SqlValueTest): Written test case for property SqlValue.
svn path=/trunk/mcs/; revision=75190
* SqlCommandBuilderTest.cs (GetInsertCommandTest)
(GetInsertCommandTestWithExpression, GetUpdateCommandTest): Fixed
NET 2.0 based test conditions.
(GetUpdateCommandBoolTest): Added new test case.
(GetUpdateCommandTest_CheckNonUpdatableColumns): Fixed NET 2.0
based test conditions.
(GetUpdateCommandBoolTest_CheckNonUpdatableColumns): Added new test
case.
(GetUpdateDeleteCommandBoolTest_CheckParameters): Added new test
case.
(GetUpdateCommandDBConcurrencyExceptionTest): Fixed NET 2.0 based
test conditions.
* SqlDataAdapterTest.cs: Commented not working test-cases.
svn path=/trunk/mcs/; revision=70623
* SqlDataAdapterTest.cs (SqlDataAdapterInheritTest): Implemented
new class to verify protected method of DbDataAdapter.
* Fixed existing test-cases to work with 2.0 profile.
svn path=/trunk/mcs/; revision=69820
* Test/System.Data/DataRowCollectionTest2.cs : Check if index is maintained for row on calling RejectChanges.
* Test/System.Data/DataTableTest2.cs : Check if data is loaded and merged (if key exists) correctly.
* Test/System.Data/ForeignKeyConstraintTest.cs : Check if a ParentColumn value can be modified
when the row is in 'Added' State. Also, check if child col values are
updated correctly.
* Test/ProviderTests/System.Data.SqlClient/SqlAdapterTest.cs : Added testcases for verifying FillError Behavior
* System.Data.Common/DbDataAdapter.cs :
- FillTable : Move BeginLoadData, EndLoadData outside the loop. Also,
move EndLoadData outsidet try,catch block. FillError is only for errors
occuring during loading the data into datatable.
* System.Data.Common/Key.cs :
- Set Default value of RowStateFilter to (CurrentRos | OriginalRows).
- ContainsVersion : If RowStateFilter is set to default value, return true
for Modified Rows as they can contain Default/Original versions.
* System.Data/DataRow.cs
- RejectChanges : Do not remove Row from Indexes when state is Deleted.
- CheckChildRows : When checking for the ChildRows, use the current value
and not the original value.
svn path=/trunk/mcs/; revision=57149
* Test/ProviderTests/System.Data.SqlClient/SqlAdapterTest.cs : Added testcases for #77480
* System.Data.Common/DbDataAdapter.cs :
- FillSchema :
- Add table to schema only if MissingSchemaAction is not Ignore
Add schema to table if MissingSchemaAction is set to either of
Add or AddWithKey
- BuildSchema :
- Set the Schema values only if MissingSchemaAction is set to
AddWithKey
svn path=/trunk/mcs/; revision=56830
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
- Modified GetSqlMoney () , to set the precision and Scale correctly.
- Modified ProcessColumnDetails , to set the schema values correctly.
* Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsDataColumn.cs : Added some default values for the column schema
* System.Data/Test/ProviderTests/ProviderIndependant/DataReaderTest : Corrected a failing testcase.
* System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandBuilderTest.cs : corrected a failing testcase
* System.Data/System.Data.SqlTypes/SqlDateTime : Corrected the MaxValue for SqlDateTime
* System.Data/System.Data.Common/DbDataAdapter.cs :
- Modified schema population to follow MissingSchemaAction and MissingMappingAction
- Add a column to the Primary Key only if its not a hidden key
- Added some argument checks
- Removed some redundant code
* System.Data/System.Data.Common/DataAdapter :
- Added argument checks
* System.Data/System.Data.Common/ExceptionHelper :
- Added InvalidEnumException , a helper function to print error msg
* System.Data/System.Data.SqlClient/SqlCommandBuilder.cs :
- Modified CreateUpdateCommand,CreateDeleteCommand , to not include
column name in the query if its a expression col.
Also, modified the queries to match the generated queries in ms.net
* System.Data/System.Data.SqlClient/SqlCommand.cs :
- Modifed Prepare, to check if Parameter is explicitly initialized
* System.Data/System.Data.SqlClient/SqlParameter.cs :
- Added CheckIfInitialized : Checks if datatype is explicitly set and
non-zero size is set for variable datatypes.
* System.Data/System.Data.SqlClient/SqlDataReader.cs :
- Added code for GetSqlBinary ()
- Fixed GetFieldCount ()
- Added more checks and exceptions.
Fixes most of the failing SqlClient Provider Tests .
svn path=/trunk/mcs/; revision=56167
* Test/ProviderTests/System.Data.SqlClient/SqlDataAdapterTest.cs :
- Added Testcase for bug #76433.
* In System.Data.Common/DbDataAdapter.cs :
- BuildSchema() : Set the value of DataColumn Property 'AllowDBNull'
as returned by database. Fixes bug#76433.
svn path=/trunk/mcs/; revision=51791
In sql:
* sybase.sql: grant permissions on objects
* sqlserver.sql: change id as int. tiny int won't allow 6000 (the
tempory updatable limit).
In System.Data.SqlClient:
* SqlDataAdapterTest.cs (Fill_Test_Exceptions): passing null
dataset name throws ArgumentNullException in ms.net
* SqlConnectionTest.cs: HostName compare: convert to uppercase.
* SqlDataReaderTest.cs: remove Opening connection in few test
cases as it was done in SetUp.
- id type change changes
svn path=/trunk/mcs/; revision=50673
* System.Data.Connected.Tests.dll.sources: added more source files
* sql/sqlserver.sql: modified. added string_family, datetime_family,
modified numeric_family values.
created new database mono-test for checking -.
* Common/DataProvider.cs : Provides data for validation
DataProvider provides the data that is used for
validating Sq[DataReader. Currently it uses a dataset
to fill data from the database. Will be modified later to
get the values from a config file.
* System.Data.SqlClient/SqlCommandTest.cs: added more testcases
for connected mode
* System.Data.SqlClient/SqlConnectionTest.cs: added more testcases
for connected mode
* System.Data.SqlClient/SqlDataAdapterTest.cs: added more testcases
for connected mode
* System.Data.SqlClient/SqlDataReaderTest.cs: added more testcases
for connected mode
svn path=/trunk/mcs/; revision=50153
factory. Moved few stand-alone tests from Test/ to this framework.
In Test:
2005-09-01 Sureshkumar T <[email protected]>
* ProviderTests: Added a new framework for testing Data
Providers. This framework is based on nunit category tests and
also the provider factory provided by Mono.Data.
In Test/System.Data.SqlClient:
2005-09-01 Sureshkumar T <[email protected]>
* SqlDataReaderTest.cs: moved to ProviderTests and integrated with
connected mode tests
* SqlCommandTest.cs: -- do --
* SqlConnectionTest.cs: -- do --
* SqlTransactionTest.cs: -- do --
* SqlDataAdapterTest.cs: -- do --
In Test/System.Data.Odbc:
2005-09-01 Sureshkumar T <[email protected]>
* OdbcDataAdapterTest.cs: moved to ProviderTests and integrated
with connected more framework.
* OdbcCommandTest.cs: -- do --.
* OdbcParameterCollectionTest.cs: Removed ParameterLengthTrimTest
to ProviderTests.
In Test/ProviderTests/sql:
2005-09-01 Sureshkumar T <[email protected]>
* SCHEMA: schema specification.
* sqlserver.sql: sql script file to create test schema for mssql
database. added.
* mysql.sql: sql script file to create test schema for mysql
database. added.
In Test/ProviderTests/System.Data.Odbc:
2005-09-01 Sureshkumar T <[email protected]>
* OdbcCommandBuilderTest.cs: Added tests for OdbcCommandBuilder.cs
* OdbcCommandTest.cs: pulled from Test/System.Data.Odbc
* OdbcDataAdapterTest.cs: pulled from Test/System.Data.Odbc
* OdbcDataReaderTest.cs: pulled from Test/System.Data.Odbc
* OdbcParameterCollectionTest.cs: pulled from Test/System.Data.Odbc
In Test/ProviderTests/ProviderIndependant:
2005-09-01 Sureshkumar T <[email protected]>
* IDbCommandTest.cs: Added. Provider independent Command tests.
* DataReaderTest.cs: Added. Provider independent DataReader tests.
In Test/ProviderTests:
2005-09-01 Sureshkumar T <[email protected]>
* System.Data.Connected.Tests.dll.sources: source files.
* app-default.config:
* app-net_2_0.config:
configuration files for profiles and lists the assembly
informations for the Provider factory.
* odbc.config:
* sqlserver.config:
connection string info for respective databases.
* README: initial.
pulled connected mode test-cases around Test/* directory into this
new framework. This framework is based on nunit category based
test-cases and uses Provider Factories provided in Mono.Data.dll
to write provider independent code.
In Test/ProviderTests/Common:
2005-09-01 Sureshkumar T <[email protected]>
* DBHelper.cs: Added. Class to provide helper methods for other tests.
* ConnectionManager.cs: Added. Class to manage connections
In Test/ProviderTests/System.Data.SqlClient:
2005-09-01 Sureshkumar T <[email protected]>
* SqlCommandBuilderTest.cs: added tests for SqlCommandBuilder
* SqlCommandTest.cs: pulled from Test/System.Data.SqlClient
* SqlConnectionStringBuilderTest.cs: pulled from Test/System.Data.SqlClient
* SqlConnectionTest.cs: pulled from Test/System.Data.SqlClient
* SqlDataAdapterTest.cs: pulled from Test/System.Data.SqlClient
* SqlDataReaderTest.cs: pulled from Test/System.Data.SqlClient
* SqlTransactionTest.cs: pulled from Test/System.Data.SqlClient
Added attribute Category ("sqlserver") to all these test fixtures.
svn path=/trunk/mcs/; revision=49260