ToDateTimeOffset() public method

Return an EpochTime as a DateTimeOffset.
public ToDateTimeOffset ( ) : DateTimeOffset
return DateTimeOffset
        public void EpochTime_ToDateTimeOffset_Returns_Correct_Value_From_DateTimeOffset_Constructor()
        {
            var expected = new DateTimeOffset(2012, 12, 25, 23, 36, 45, TimeSpan.Zero);
            var epochTime = new EpochTime(expected);

            Assert.AreEqual(expected, epochTime.ToDateTimeOffset());
        }
        public void EpochTime_ToDateTimeOffset_Returns_Correct_Value_From_Seconds_Constructor()
        {
            var epochTime = new EpochTime(1356478605);

            Assert.AreEqual(new DateTimeOffset(2012, 12, 25, 23, 36, 45, TimeSpan.Zero), epochTime.ToDateTimeOffset());
        }