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

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

            Assert.AreEqual(testDateTime, type.GetRawValue());

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