//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void schemaTransactionsShouldSurviveRecovery() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void SchemaTransactionsShouldSurviveRecovery() { // given File storeDir = TestDirectory.absolutePath(); Process process = (new CreateConstraintButDoNotShutDown()).Start(storeDir); process.WaitForSchemaTransactionCommitted(); SubProcess.kill(process); // when GraphDatabaseService recoveredDatabase = (new TestGraphDatabaseFactory()).newEmbeddedDatabase(storeDir); // then assertEquals(1, Constraints(recoveredDatabase).Count); assertEquals(1, Indexes(recoveredDatabase).Count); recoveredDatabase.Shutdown(); }