Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldHandleLocalDateTime()
        public virtual void ShouldHandleLocalDateTime()
        {
            // Given
            LocalDateTimeValue dvalue = LocalDateTimeValue.localDateTime(1, 2, 3, 4, 5, 6, 7);

            // When
            dvalue.WriteTo(_converter);

            // Then
            object value = _converter.value();

            assertThat(value, instanceOf(typeof(DateTime)));
            assertThat(value, equalTo(dvalue.AsObjectCopy()));
        }
Пример #2
0
 public override DateTime MapLocalDateTime(LocalDateTimeValue value)
 {
     return(value.AsObjectCopy());
 }