Example #1
0
        public void Date_2000_11_20_8_20_15_Unknown()
        {
            var        data   = DirStructure.ReadDataFile("binary/ts_2000_11_20_8_20_15_unknown.bindat");
            IIonReader reader = new UserBinaryReader(new MemoryStream(data));

            Assert.AreEqual(IonType.Timestamp, reader.MoveNext());
            var timeStamp = reader.TimestampValue();
            var datetime  = new DateTime(2000, 11, 20, 8, 20, 15, DateTimeKind.Unspecified);

            Assert.AreEqual(datetime, timeStamp.DateTime);
        }