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()); }