public void GetParameter() { SqlType type = new SqlText("Test", ParameterDirection.Input); TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, "Test", size: -1); type = new SqlText(null, ParameterDirection.Input); TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, DBNull.Value, size: -1); }
public void GetParameter() { SqlType type = new SqlText("Test", ParameterDirection.Input); TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, "Test", size: -1); type = new SqlText(null, ParameterDirection.Input); TestHelper.AssertSqlParameter(type.GetParameter(), SqlDbType.Text, DBNull.Value, size: -1); }