Exemplo n.º 1
0
        public void ShouldCreateDateTimeFromMilliseconds()
        {
            // given
            const long milliseconds = 1440426600000L;

            // when
            var dateTime = DateTimes.FromMilliseconds(milliseconds);

            // then
            Check.That(dateTime).IsEqualTo(new DateTime(2015, 8, 24, 14, 30, 0, DateTimeKind.Utc));
        }