public void CannotWriteTwoLuceneIndexesOnSameStore() { _indexer.DeleteAll().Wait(); var store = new SecureStore(_store); using (var indexer2 = new LuceneIndex(store, "testindexer", "basePath", null)) { Assert.Throws<LockObtainFailedException>(() => { indexer2.DeleteAll().Wait(); }); } }