//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void defaultQueryImplementationMustThrowForUnsupportedIndexOrder() internal virtual void DefaultQueryImplementationMustThrowForUnsupportedIndexOrder() { // Given IndexReader indexReader = StubIndexReader(); // Then string expectedMessage = string.Format("This reader only have support for index order {0}. Provided index order was {1}.", IndexOrder.NONE, IndexOrder.ASCENDING); System.NotSupportedException operationException = assertThrows(typeof(System.NotSupportedException), () => indexReader.Query(new SimpleNodeValueClient(), IndexOrder.ASCENDING, false, IndexQuery.exists(1))); assertEquals(expectedMessage, operationException.Message); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void markAsStaleIsUnsupported() internal virtual void MarkAsStaleIsUnsupported() { System.NotSupportedException uoe = assertThrows(typeof(System.NotSupportedException), () => _indexReference.setStale()); assertEquals(uoe.Message, "Read only indexes can't be marked as stale."); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void obtainingWriterIsUnsupported() internal virtual void ObtainingWriterIsUnsupported() { System.NotSupportedException uoe = assertThrows(typeof(System.NotSupportedException), () => _indexReference.Writer); assertEquals(uoe.Message, "Read only indexes do not have index writers."); }