public void GetClosestUtcZeroTimeTest(object value) { var dateTimeOffset = DateTimeOffsetHelper.ToDateTimeOffset(value); var actual = DateTimeOffsetHelper.GetClosestUtcZeroTime(dateTimeOffset.DateTime); Assert.Equal(dateTimeOffset.Year, actual.Year); Assert.Equal(dateTimeOffset.Month, actual.Month); Assert.Equal(dateTimeOffset.Day, actual.Day); Assert.Equal(dateTimeOffset.Year, actual.Year); Assert.Equal(dateTimeOffset.Hour, actual.Hour); Assert.Equal(dateTimeOffset.Minute, actual.Minute); Assert.Equal(dateTimeOffset.Second, actual.Second); }