Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldHandleLocalTime()
        internal virtual void ShouldHandleLocalTime()
        {
            LocalTimeValue localTime = localTime(18, 39, 24, 111222777);
            PrettyPrinter  printer   = new PrettyPrinter();

            localTime.WriteTo(printer);

            assertEquals("{localTime: \"18:39:24.111222777\"}", printer.Value());
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testDateTimeWithPrecedingNotInLinedLong()
        public virtual void TestDateTimeWithPrecedingNotInLinedLong()
        {
            TestDateTypeWithPrecedingNotInLinedLong(DateTimeValue.datetime(DateValue.parse("2018-04-01"), LocalTimeValue.parse("01:02:03"), ZoneId.of("Europe/Stockholm")));
        }
Пример #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testLocalTimeWithPrecedingNotInLinedLong()
        public virtual void TestLocalTimeWithPrecedingNotInLinedLong()
        {
            TestDateTypeWithPrecedingNotInLinedLong(LocalTimeValue.parse("13:45:02"));
        }
Пример #4
0
 public override Value MapLocalTime(LocalTimeValue value)
 {
     throw new CypherTypeException("Don't know how to treat that as a boolean: " + value, null);
 }
Пример #5
0
 public override AnyValue MapLocalTime(LocalTimeValue value)
 {
     return(value);
 }
Пример #6
0
 internal static LocalTime AsValueRaw(long long0)
 {
     return(LocalTimeValue.localTimeRaw(long0));
 }