//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotLogQueries() public virtual void ShouldNotLogQueries() { // when _database.execute("CREATE (n:Reference) CREATE (foo {test:'me'}) RETURN n"); _database.execute("MATCH (n) RETURN n"); // then inLog(typeof([email protected])); _logProvider.assertNoLoggingOccurred(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void updateNodeByMapParameter() public virtual void UpdateNodeByMapParameter() { _db.execute("CREATE (n:Reference) SET n = {data} RETURN n", map("data", map("key1", "value1", "key2", 1234))); Node node1 = GetNodeByIdInTx(0); assertThat(node1, InTxS(hasProperty("key1").withValue("value1"))); assertThat(node1, InTxS(hasProperty("key2").withValue(1234))); _db.execute("MATCH (n:Reference) SET n = {data} RETURN n", map("data", map("key1", null, "key3", 5678))); Node node2 = GetNodeByIdInTx(0); assertThat(node2, InTxS(not(hasProperty("key1")))); assertThat(node2, InTxS(not(hasProperty("key2")))); assertThat(node2, InTxS(hasProperty("key3").withValue(5678))); }