NightOwl888 edited a comment on issue #267:
URL: https://github.com/apache/lucenenet/issues/267#issuecomment-651117339


   It turns out this is a design feature of Lucene that is used for testing. 
The asserts were failing by design in order to be "caught" in the 
[BaseTermVectorsFormatTestCase](https://github.com/apache/lucenenet/blob/cffc8ddd668841eaf82cf759f976ba90aa233002/src/Lucene.Net.TestFramework/Index/BaseTermVectorsFormatTestCase.cs#L637-L647).
 This becomes an issue on .NET Standard, because it is set up to cause a fatal 
crash when an assertion is thrown (when running in VSTest).
   
   I am still analyzing what the options are, but I suspect that consistently 
throwing an `InvalidOperationException` in each of the `DocsAndPostionsEnum` 
subclasses will likely be the answer.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to