public void ShouldReturnADateTimeWhenConvertingFromUnixTimestamp()
        {
            const long ExampleTimestamp = 1349697600000;

            var result = ExampleTimestamp.ConvertFromUnixTimestamp();

            result.GetType().Should().Be <DateTime>();
        }
        public void WhenConvertingFromUnixTimestampAndBackShouldKeepTheSameValue()
        {
            const long ExampleTimestamp = 1349697600000;

            var convertedDateTime = ExampleTimestamp.ConvertFromUnixTimestamp();
            var returnedTimeStamp = convertedDateTime.ConvertToUnixTimestamp();

            returnedTimeStamp.GetType().Should().Be <long>();
            returnedTimeStamp.Should().Be(ExampleTimestamp);
        }
        public void ShouldReturnAValidDateTimeWhenConvertingFromUnixTimestamp()
        {
            var        exampleDateTime  = new DateTime(2012, 10, 08, 12, 0, 0, DateTimeKind.Utc);
            const long ExampleTimestamp = 1349697600000;

            var result = ExampleTimestamp.ConvertFromUnixTimestamp();

            result.GetType().Should().Be <DateTime>();
            result.Should().Be(exampleDateTime);
        }