//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldHandleLocalDateTime() internal virtual void ShouldHandleLocalDateTime() { LocalDateTimeValue localDateTime = localDateTime(2015, 8, 8, 8, 40, 29, 999888111); PrettyPrinter printer = new PrettyPrinter(); localDateTime.WriteTo(printer); assertEquals("{localDateTime: \"2015-08-08T08:40:29.999888111\"}", printer.Value()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testDateRange() public virtual void TestDateRange() { //JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET: //ORIGINAL LINE: org.neo4j.internal.kernel.api.IndexQuery.RangePredicate<?> p = IndexQuery.range(propId, org.neo4j.values.storable.DateValue.date(2014, 7, 7), true, org.neo4j.values.storable.DateValue.date(2017,3, 7), false); RangePredicate <object> p = IndexQuery.Range(_propId, DateValue.date(2014, 7, 7), true, DateValue.date(2017, 3, 7), false); assertFalse(Test(p, DateValue.date(2014, 6, 8))); assertTrue(Test(p, DateValue.date(2014, 7, 7))); assertTrue(Test(p, DateValue.date(2016, 6, 8))); assertFalse(Test(p, DateValue.date(2017, 3, 7))); assertFalse(Test(p, DateValue.date(2017, 3, 8))); assertFalse(Test(p, LocalDateTimeValue.localDateTime(2016, 3, 8, 0, 0, 0, 0))); }
public override Value AsValue() { return(LocalDateTimeValue.localDateTime(EpochSecond, NanoOfSecond)); }
public override Value MapLocalDateTime(LocalDateTimeValue value) { throw new CypherTypeException("Don't know how to treat that as a boolean: " + value, null); }
public override AnyValue MapLocalDateTime(LocalDateTimeValue value) { return(value); }