コード例 #1
0
        public void DateTimeOffsetToUnixTimeStamp_Should_ReturnUnixTimeStamp()
        {
            var referenceDate = new DateTimeOffset(1970, 2, 2, 21, 30, 0, TimeSpan.FromMinutes(-150));
            var actual        = ConversionUtilities.DateTimeOffsetToUnixTimeStamp(referenceDate);

            actual.Should().Be(60 * 60 * 24 * 33);
        }