//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldArchiveFailedIndex() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldArchiveFailedIndex() { // given Db.withSetting(GraphDatabaseSettings.archive_failed_index, "true"); using (Transaction tx = Db.beginTx()) { Node node = Db.createNode(_person); node.SetProperty("name", "Fry"); tx.Success(); } using (Transaction tx = Db.beginTx()) { Node node = Db.createNode(_person); node.SetProperty("name", Values.pointValue(CoordinateReferenceSystem.WGS84, 1, 2)); tx.Success(); } using (Transaction tx = Db.beginTx()) { Db.schema().constraintFor(_person).assertPropertyIsUnique("name").create(); tx.Success(); } assertThat(ArchiveFile(), nullValue()); // when Db.restartDatabase(new SabotageNativeIndex(Random.random())); // then IndexStateShouldBe(equalTo(ONLINE)); assertThat(ArchiveFile(), notNullValue()); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldDisableCpuTimeTracking() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldDisableCpuTimeTracking() { // given string query = "MATCH (n) SET n.v = n.v + 1"; _db.withSetting(track_query_cpu_time, FALSE); IDictionary <string, object> data; // when using (Resource <Node> test = test(_db.createNode, query)) { data = GetQueryListing(query); } // then assertThat(data, hasEntry(equalTo("cpuTimeMillis"), nullValue())); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void configureRecordFormat() public virtual void ConfigureRecordFormat() { _db.withSetting(GraphDatabaseSettings.record_format, RecordFormat); }