NightOwl888 opened a new issue, #1094: URL: https://github.com/apache/lucenenet/issues/1094
### Is there an existing issue for this? - [X] I have searched the existing issues ### Task description In Lucene, there were `closeAfterTest()` and `closeAfterSuite()` methods on `LuceneTestCase` that users can use to ensure resources are cleaned up. The `closeAfterSuite()` method in Lucene registers a wrapper class for each `Directory` that is created, which does a check globally to ensure every `Directory` is closed. We should implement this to help ensure we aren't leaking any `Directory` instances in tests. This also depends on the `TestRuleMarkFailure` feature, but that is a duplicate of the `RuleState` enum that already exists in NUnit so it is best to leverage that instead. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org