Example #1
0
        public void GetRawValue()
        {
            SqlType type = new SqlTinyInt(5, ParameterDirection.Input);
            Assert.AreEqual((byte)5, type.GetRawValue());

            type = new SqlTinyInt(null, ParameterDirection.Input);
            Assert.Null(type.GetRawValue());
        }
Example #2
0
        public void GetRawValue()
        {
            SqlType type = new SqlTinyInt(5, ParameterDirection.Input);

            Assert.AreEqual((byte)5, type.GetRawValue());

            type = new SqlTinyInt(null, ParameterDirection.Input);
            Assert.Null(type.GetRawValue());
        }