//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldWriteDateTime() public virtual void ShouldWriteDateTime() { // given foreach (DateTimeValue value in new DateTimeValue[] { datetime(date(2017, 3, 26), localTime(1, 0, 0, 0), ZoneId.of("Europe/Stockholm")), datetime(date(2017, 3, 26), localTime(2, 0, 0, 0), ZoneId.of("Europe/Stockholm")), datetime(date(2017, 3, 26), localTime(3, 0, 0, 0), ZoneId.of("Europe/Stockholm")), datetime(date(2017, 10, 29), localTime(2, 0, 0, 0), ZoneId.of("Europe/Stockholm")), datetime(date(2017, 10, 29), localTime(3, 0, 0, 0), ZoneId.of("Europe/Stockholm")), datetime(date(2017, 10, 29), localTime(4, 0, 0, 0), ZoneId.of("Europe/Stockholm")) }) { IList <DateTimeValue> values = new List <DateTimeValue>(1); ValueWriter <Exception> writer = new AssertOnlyAnonymousInnerClass(this, values); // when value.WriteTo(writer); // then assertEquals(singletonList(value), values); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldWriteTime() internal virtual void ShouldWriteTime() { // given foreach (TimeValue time in new TimeValue[] { time(11, 30, 4, 112233440, ofHours(3)), time(23, 59, 59, 999999999, ofHours(18)), time(23, 59, 59, 999999999, ofHours(-18)), time(0, 0, 0, 0, ofHours(-18)), time(0, 0, 0, 0, ofHours(18)) }) { IList <TimeValue> values = new List <TimeValue>(1); ValueWriter <Exception> writer = new AssertOnlyAnonymousInnerClass(this, values); // when time.WriteTo(writer); // then assertEquals(singletonList(time), values); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldWriteDuration() internal virtual void ShouldWriteDuration() { // given foreach (DurationValue duration in new DurationValue[] { duration(0, 0, 0, 0), duration(1, 0, 0, 0), duration(0, 1, 0, 0), duration(0, 0, 1, 0), duration(0, 0, 0, 1) }) { IList <DurationValue> values = new List <DurationValue>(1); ValueWriter <Exception> writer = new AssertOnlyAnonymousInnerClass(this, values); // when duration.WriteTo(writer); // then assertEquals(singletonList(duration), values); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldWriteDate() internal virtual void ShouldWriteDate() { // given foreach (DateValue value in new DateValue[] { date(2016, 2, 29), date(2017, 12, 22) }) { IList <DateValue> values = new List <DateValue>(1); ValueWriter <Exception> writer = new AssertOnlyAnonymousInnerClass(this, values); // when value.WriteTo(writer); // then assertEquals(singletonList(value), values); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldWriteDateTime() internal virtual void ShouldWriteDateTime() { // given foreach (LocalDateTimeValue value in new LocalDateTimeValue[] { localDateTime(date(2017, 3, 26), localTime(1, 0, 0, 0)), localDateTime(date(2017, 3, 26), localTime(2, 0, 0, 0)), localDateTime(date(2017, 3, 26), localTime(3, 0, 0, 0)), localDateTime(date(2017, 10, 29), localTime(2, 0, 0, 0)), localDateTime(date(2017, 10, 29), localTime(3, 0, 0, 0)), localDateTime(date(2017, 10, 29), localTime(4, 0, 0, 0)) }) { IList <LocalDateTimeValue> values = new List <LocalDateTimeValue>(1); ValueWriter <Exception> writer = new AssertOnlyAnonymousInnerClass(this, values); // when value.WriteTo(writer); // then assertEquals(singletonList(value), values); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldWriteLocalTime() internal virtual void ShouldWriteLocalTime() { // given foreach (LocalTimeValue value in new LocalTimeValue[] { localTime(0, 0, 0, 0), localTime(11, 22, 33, 123456789), localTime(2, 3, 4, 5), localTime(23, 59, 59, 999999999) }) { IList <LocalTimeValue> values = new List <LocalTimeValue>(1); ValueWriter <Exception> writer = new AssertOnlyAnonymousInnerClass(this, values); // when value.WriteTo(writer); // then assertEquals(singletonList(value), values); } }