Ejemplo n.º 1
0
        public void ExtractTimestampWithGivenOffset()
        {
            var data       = _data;
            var navigation = "something.timestampNoOffset";
            var offset     = "0000";

            var actual = data.ExtractTimestamp(navigation, null, null, offset);

            DateTimeExtensionsTests.AssertDateTimeOffset(actual, false);
        }
Ejemplo n.º 2
0
        public void ExtractTimestampWithNoGivenOffset()
        {
            var data = _data;

            var navigation = "something.timestampWithOffset";
            var format     = "ddd MMM dd HH:mm:ss zzz yyyy";

            var actual = data.ExtractTimestamp(navigation, format, null, null);

            DateTimeExtensionsTests.AssertDateTimeOffset(actual, false);
        }