* DataSetTest.cs : added test for r89307 fix (it is for XmlSerializer
but needs to be in sys.data).
* MonkeyDataSet.cs : test support classes (generated by xsd).
* System.Data_test.dll.sources: added MonkeyDataSet.cs, test helper.
svn path=/trunk/mcs/; revision=89596
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
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
* 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
* DataTableTest.cs (Bug55978): In some cases this test case was
failing with Invalid Date format. So modified the testcase to use
invariant culture for DateTime.
svn path=/trunk/mcs/; revision=83519
* 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
* DataTableTest.cs (Bug82109): Should always parse the object of
type DateTime in InvariantCulture CultureInfo, Fixes Bug # 82109.
svn path=/trunk/mcs/; revision=82767
* 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
* DataColumnExpressionTest.cs (DataColumnCharTest): Test case to
check if the data column of type char. Bug # 81625.
svn path=/trunk/mcs/; revision=78718
* 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
2007-05-18 Chris Toshok <[email protected]>
* DataViewTest.cs (DefaultColumnNameAddListChangedTest): new test
for figuring out the sorts of events raised between 1.1 and 2.0
when you add a column with the default name.
In System.Data:
2007-05-18 Chris Toshok <[email protected]>
* DataColumnCollection.cs (Add ()): handle the default name case
in Add(DataColumn).
(Add (string)): same - let Add(DataColumn) handle the default name
setting.
(Add (DataColumn)): in the 1.1 case, we need to add the column's
PropertyChanged handler *before* possibly setting the column name
to the default so we emit the right events (Changed/Added). In
the 2.0 case, we add the event handler after the name is set, and
therefore only emit the Added event.
svn path=/trunk/mcs/; revision=77738