* OdbcDataReaderTest.cs (Bug332404Test): Bug 332404 - ODBC and
numeric columns. Thanks to Ernesto Carrea <[email protected]>
for the patch and the test case.
Fixed compilation issues in Bug332400Test method.
svn path=/trunk/mcs/; revision=87823
* OdbcDataReaderTest.cs (Bug332400Test): Bug 332400 - ODBC and
LONGBLOB columns. Thanks to Ernesto Carrea
<[email protected]> for the patch and the test case.
svn path=/trunk/mcs/; revision=87372
* OdbcCommandBuilderTest.cs (DefaultPropertiesTest): QuotePrefix
and QuoteSuffix are not supported in 2.0 profile, so moved them
under 1.0 profile.
* OdbcDataReaderTest.cs (Bug82560Test): Added new test case for
the bug # 82560. Thanks to [email protected] (amc) for providing
this test case.
(Bug82135Test): Fixed connection open.
svn path=/trunk/mcs/; revision=85620
* SqlConnectionTest.cs (InterfaceTransactionTest): Fixes bug
82189. SqlConnection throws an exception if Connection or
Transaction is set to null on IDbCommand interface.
svn path=/trunk/mcs/; revision=83061
* IDbCommandTest.cs (ExecuteScalarTest): SqlClient and Odbc
ExecuteScalar returns diff object type. Since the test is common
to both the environment, modified the test case to handle both.
svn path=/trunk/mcs/; revision=83050
* OdbcDataReaderTest.cs (FindZeroInToStringTest): Test for varchar
longer than 255 characters, by Mads Bondo Dydensborg <[email protected]>.
svn path=/trunk/mcs/; revision=80428
* DataReaderTest.cs (GetBytesNullBufferTest): Odbc returns -1, but
SqlClient returns 0. Value has to be modified accordingly.
svn path=/trunk/mcs/; revision=79150
* SqlCommandTest.cs (SqlCommandDisposeTest): Added new test case
to check, the SqlCommand.Dispose, not to dispose SqlConnection and
SqlTransaction instances.
svn path=/trunk/mcs/; revision=79149
* OdbcDataReaderTest.cs (GetDataTypeNameTest): Test case to check the returned data type names
(GetDataTypeNameIndexOutOfRangeExceptionTest): Test for out of range exceptions
(GetOrdinalTest): Test case for returned ordinals
(GetOrdinalIndexOutOfRangeExceptionTest): Testing out of range index values
(GetFieldTypeTest): Test case for checking returned field types
(GetFieldTypeIndexOutOfRangeExceptionTest): Test case for checking out of range index values
(GetNameTest): Test for returned name
(GetNameIndexOutOfRangeExceptionTest): Test for out of range index values
* OdbcParameterTest.cs (DefaultValuesTest): Test for default OdbcParameter values
* OdbcParameterCollectionTest.cs (InsertTest): Test for inserting parameters in parameter collection
(InsertNoOverwriteTest): Testing overwriting in Insert
(InsertNullTest): Testing insert for null values
(InsertEmptyTest): Testing insert for empty values
(InsertAlreadyContainedParameterTest): Test for existing parameters
(InsertArgumentGreaterThanCountTest): Testing out of range index values
(InsertNegativeArgumentTest): Test for negative arguments
(InsertNonOdbcParameterTest): Test to insert non Odbc Parameter values
(AddRangeTest): Test for adding a range of values to the parameter collection
(AddRangeParameterAlreadyContainedTest): Test for adding already contained parameters
(AddRangeArgumentNullExceptionTest): Test for null arguments
(AddRangeParameterContainedInAnotherCollTest): Adding range of parameters contained in another collection
(AddRangeMultiDimensionalArrayTest): Test for checking support of multi-dimensional arrays
(AddRangeArrayValuesArgumentNullExceptionTest): Test for null arguments in array values
(ContainsTest): Test for Contains
(ContainsNonOdbcParameterTest): Testing Contains for non-OdbcParameters
(ContainsCaseSensitivityTest) : Test for case sensitivity
(ContainsNotMineTest) : Testing Contains for parameters belonging to another collection
(IndexOfCaseSensitivityTest): Testing case sensitivity for IndexOf
(IndexOfNonOdbcParameterTest): Testing IndexOf for non-OdbcParameters
(CopyToTest): Test for CopyTo method
(CopyToArgumentExceptionTest): Testing for invalid arguments
(CopyToMultiDimensionalArrayTest): Testing CopyTo for multi-dimensional arrays
(CopyToLowerBoundCheckTest): Testing invalid index values
(DuplicateParameterNameTest): Testing support for duplicate parameter names
(RemoveTest): Test for Remove (OdbcParameter)
(RemoveNullTest): Testing Remove for null values
(RemoveEmptyTest): Testing Remove for empty values
(RemoveNonOdbcParameterTest): Testing Remove for non Odbc Parameters
(RemoveNonExistingParameterTest): Testing Remove for non existing Parameters
(RemoveParameterContainedInAnotherCollTest): Removing parameters contained in another collection
(RemoveAtTest): Test for RemoveAt
(RemoveAtOutOfRangeIndexTest): Testing RemoveAt with invalid index
(RemoveAtNegativeIndexTest): Test for negative index
(RemoveAtBoundaryTest): Boundary check for RemoveAt
(AddWithValueTest): Testing AddWithValue with various parameters
(DefaultNamesAndValuesTest): Testing default names and values of parameters
svn path=/trunk/mcs/; revision=78833
* SqlCommandTest.cs (StoredProc_NoParameterTest)
(StoredProc_ParameterTest, rpc_helper_function): Added new methods
to test the implementation of TDS RPC.
svn path=/trunk/mcs/; revision=78189
* SqlClientFactory.cs: Created the class.
(CreatePermissionTest): Added a test case for the method CreatePermission.
svn path=/trunk/mcs/; revision=76660
* 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
* SqlParameter.cs: Move isVariableSizeType flag to TdsMetaParameter
so that the TdsMetaParameter can validate itself for valid size / values.
* SqlCommand.cs (Execute): Call Validate on TdsMetaParameter.
* TdsMetaParameter.cs: Add Validate() method. For now, validate
size/value. Add isVariableSizeType.
* SqlCommandTest.cs: Add OutputParamSizeTest1-4 to test size/value
validation exception.
svn path=/trunk/mcs/; revision=74500
* SqlCommandTest.cs (ExecuteScalarTest, ExecuteReaderTest)
(ExecuteReaderTest, PrepareTest, TransactionTest): Modified
expected exception to NullReferenceException as it has to be
thrown in 2.0 profile.
svn path=/trunk/mcs/; revision=74234
* SqlCommandTest.cs: Add new test to check string parameters with
value = null and size 0. Fixed tests for NET 2.0 (different exceptions
thrown)
* ConnectionManager.cs: small fix to close the connection if we
mean to change the connection string and open it again
svn path=/trunk/mcs/; revision=74000
* SqlCommand.cs (ExecuteScalar): Fix returned value for
stored procedure calls to return the first column of the
first row produced by the proc.
* SqlCommandTest.cs: Add parameterized stored procedure call tests
to ExecuteScalar and ExecuteNonQuery.
svn path=/trunk/mcs/; revision=73982
* OdbcDataReaderTest.cs (GetDataTypeNameTest)
(GetDataTypeNameIndexOutOfRangeExceptionTest, GetOrdinalTest)
(GetOrdinalTest, GetFieldTypeTest, GetNameTest)
(GetFieldTypeIndexOutOfRangeExceptionTest)
(GetNameIndexOutOfRangeExceptionTest): Added new tests
* OdbcInfoMessageEventArgsTest.cs: Created new test case file
Added test ToStringTest()
* OdbcMetaDataCollectionNamesTest.cs: Created new test case file
Added test EqualsTest()
* OdbcParameterCollectionTest.cs (InsertTest, AddRangeTest)
(ContainsTest, InsertArgumentGreaterThanCountTest, CopyToTest)
(InsertNegetiveArgumentTest, CopyToArgumentExceptionTest)
(AddRangeParameterAlreadyContainedTest, CopyToLowerBoundCheckTest)
(AddRangeArgumentNullExceptionTest, AddRangeMultiDimensionalArrayTest)
(CopyToMultiDimensionalArrayTest): Added new tests.
2007-02-02 Nidhi Rawal <[email protected]>
* OdbcConnectionStringBuilderTest.cs: Created test cases for all
the methods that are implemented.
* OdbcMetaDataColumnNamesTest.cs: Implemented test cases for this
class.
* OdbcParameterCollectionTest.cs (IndexOfTest): Implemented test
case for the method.
svn path=/trunk/mcs/; revision=73236
* MySQL_5.sql: Added this new sql script. This sql script performs
the same operations as the existing "mysql.sql" but some sql
commands have been changed either to fix bugs or to comply with
MySQL Server 5.0.
svn path=/trunk/mcs/; revision=73234
* 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