Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }