//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldTruncateOffsetSeconds() internal virtual void ShouldTruncateOffsetSeconds() { OffsetTime time = OffsetTime.of(14, 55, 50, 0, ZoneOffset.ofHoursMinutesSeconds(2, 15, 45)); OffsetTime truncatedTime = TemporalUtil.TruncateOffsetToMinutes(time); assertEquals(OffsetTime.of(14, 55, 5, 0, ZoneOffset.ofHoursMinutes(2, 15)), truncatedTime); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldDoNothingForOffsetWithoutSeconds() internal virtual void ShouldDoNothingForOffsetWithoutSeconds() { OffsetTime time = OffsetTime.of(23, 30, 10, 0, ZoneOffset.ofHoursMinutes(-5, -30)); OffsetTime truncatedTime = TemporalUtil.TruncateOffsetToMinutes(time); assertEquals(time, truncatedTime); }