示例#1
0
        public virtual void DateTypeDecode()
        {
            Debug.WriteLine("=================================================================================\r\n");
            Debug.WriteLine("Decoding test data:\r\n" + ByteUtil.Dump(datedata));
            object obj = datatype.Decode(datedata);

            Assert.True(obj is DateTime);
            DateTime date = (DateTime)obj;

            Debug.WriteLine("Decoded as: " + date);
            //Debug.WriteLine( "a long value of: " + date.getTime() );
            Assert.True(cal.Equals(date));
            Debug.WriteLine("Test Completed Successfully =====================================================\r\n");
        }