public void GetTypeFromSqlDbType_InvalidTypes(SqlDbType sqlDbType)
        {
            SPSSchema schema = new SPSSchema();

            Assert.IsNull(schema.GetSystemTypeFromSqlDbType_Test(sqlDbType.ToString()));
            Assert.IsNull(schema.GetSystemTypeFromSqlDbType_Test(sqlDbType));
        }
        public void GetTypeFromSqlDbType(SqlDbType sqlDbType, Type expectedType)
        {
            SPSSchema schema = new SPSSchema();

            Trace.WriteLine(string.Format("{0},{1}", expectedType, sqlDbType));

            Assert.IsTrue(expectedType == schema.GetSystemTypeFromSqlDbType_Test(sqlDbType.ToString()));
            Assert.IsTrue(expectedType == schema.GetSystemTypeFromSqlDbType_Test(sqlDbType));
        }
        public void AddParameterSql_NullParameter(SqlDbType sqlDbType)
        {
            SPSSchema schema = new SPSSchema();

            schema.AddParameterSql(null, sqlDbType);
            Assert.IsTrue(schema.Schema.Count == 1);
            Trace.WriteLine(string.Format("{0}", schema.Schema[0].Name));
            Assert.IsTrue(schema.Schema[0].PropertyType.Equals(schema.GetSystemTypeFromSqlDbType_Test(sqlDbType)));
        }