From: <gc...@us...> - 2002-10-25 17:20:09
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock/Data In directory usw-pr-cvs1:/tmp/cvs-serv9843/DotNetMock/Data Modified Files: MockDataParameter.cs Log Message: Index: MockDataParameter.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Data/MockDataParameter.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MockDataParameter.cs 11 Oct 2002 03:07:59 -0000 1.3 --- MockDataParameter.cs 25 Oct 2002 03:02:26 -0000 1.4 *************** *** 203,212 **** switch (Type.GetTypeCode(value.GetType())) { - case TypeCode.Empty: - throw new SystemException("Invalid data type"); - case TypeCode.Object: return DbType.Object; case TypeCode.DBNull: case TypeCode.Char: --- 203,210 ---- switch (Type.GetTypeCode(value.GetType())) { case TypeCode.Object: return DbType.Object; + case TypeCode.Empty: case TypeCode.DBNull: case TypeCode.Char: *************** *** 215,220 **** case TypeCode.UInt32: case TypeCode.UInt64: ! // Throw a SystemException for unsupported data types. ! throw new SystemException("Invalid data type"); case TypeCode.Boolean: --- 213,217 ---- case TypeCode.UInt32: case TypeCode.UInt64: ! throw new ApplicationException("Unsupported data type"); case TypeCode.Boolean: *************** *** 249,253 **** default: ! throw new SystemException("Value is of unknown data type"); } } --- 246,250 ---- default: ! throw new ApplicationException("Value is of unknown data type"); } } |