//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void assertTreeHeightIsAsExpected() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void AssertTreeHeightIsAsExpected() { Setup(GraphDatabaseSettings.SchemaIndex.NATIVE_BTREE10); MutableObject <int> heightRef = new MutableObject <int>(); File[] indexFiles = SchemaIndexFiles(); CorruptIndexes(true, (tree, inspection) => heightRef.setValue(inspection.LastLevel), indexFiles); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final int height = heightRef.getValue(); int height = heightRef.Value; assertEquals("This test assumes height of index tree is 2 but height for this index was " + height + ". This is most easily regulated by changing number of nodes in setup.", 2, height); }