Beispiel #1
0
 public void Create()
 {
     Utilities.DataTypes.Conversion.Converters.SqlDbTypeToDbType Test = new Utilities.DataTypes.Conversion.Converters.SqlDbTypeToDbType(new Utilities.DataTypes.Conversion.Manager());
     Assert.Equal(true, Test.CanConvert(typeof(SqlDbType)));
     Assert.Equal(true, Test.CanConvert(typeof(DbType)));
     Assert.Equal(DbType.Int64, Test.To(SqlDbType.BigInt, typeof(DbType)));
     Assert.Equal(DbType.Binary, Test.To(SqlDbType.Binary, typeof(DbType)));
     Assert.Equal(DbType.Boolean, Test.To(SqlDbType.Bit, typeof(DbType)));
     Assert.Equal(DbType.DateTime2, Test.To(SqlDbType.DateTime2, typeof(DbType)));
     Assert.Equal(DbType.Int32, Test.To(SqlDbType.Int, typeof(DbType)));
 }
 public void Create()
 {
     Utilities.DataTypes.Conversion.Converters.SqlDbTypeToDbType Test = new Utilities.DataTypes.Conversion.Converters.SqlDbTypeToDbType(new Utilities.DataTypes.Conversion.Manager());
     Assert.Equal(true, Test.CanConvert(typeof(SqlDbType)));
     Assert.Equal(true, Test.CanConvert(typeof(DbType)));
     Assert.Equal(DbType.Int64, Test.To(SqlDbType.BigInt, typeof(DbType)));
     Assert.Equal(DbType.Binary, Test.To(SqlDbType.Binary, typeof(DbType)));
     Assert.Equal(DbType.Boolean, Test.To(SqlDbType.Bit, typeof(DbType)));
     Assert.Equal(DbType.DateTime2, Test.To(SqlDbType.DateTime2, typeof(DbType)));
     Assert.Equal(DbType.Int32, Test.To(SqlDbType.Int, typeof(DbType)));
 }