C# Class Lucene.Net.Search.TestSort

显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
SetUp ( ) : void

LUCENENET specific. Ensure we have an infostream attached to the default FieldCache when running the tests. In Java, this was done in the Core.Search.TestFieldCache.TestInfoStream() method (which polluted the state of these tests), but we need to make the tests self-contained so they can be run correctly regardless of order. Not setting the InfoStream skips an execution path within these tests, so we should do it to make sure we test all of the code.

TearDown ( ) : void

LUCENENET specific. See SetUp(). Dispose our InfoStream and set it to null to avoid polluting the state of other tests.

Private Methods

Method Description
TestByte ( ) : void
TestByteMissing ( ) : void
TestByteMissingLast ( ) : void
TestByteReverse ( ) : void
TestCustomByteParser ( ) : void
TestCustomDoubleParser ( ) : void
TestCustomFloatParser ( ) : void
TestCustomIntParser ( ) : void
TestCustomLongParser ( ) : void
TestCustomShortParser ( ) : void
TestDouble ( ) : void
TestDoubleMissing ( ) : void
TestDoubleMissingLast ( ) : void
TestDoubleReverse ( ) : void
TestDoubleSignedZero ( ) : void
TestEmptyIndex ( ) : void
TestEmptyStringVsNullStringSort ( ) : void
TestFieldDoc ( ) : void
TestFieldDocReverse ( ) : void
TestFieldScore ( ) : void
TestFieldScoreReverse ( ) : void
TestFloat ( ) : void
TestFloatMissing ( ) : void
TestFloatMissingLast ( ) : void
TestFloatReverse ( ) : void
TestInt ( ) : void
TestIntMissing ( ) : void
TestIntMissingLast ( ) : void
TestIntReverse ( ) : void
TestLong ( ) : void
TestLongMissing ( ) : void
TestLongMissingLast ( ) : void
TestLongReverse ( ) : void
TestMaxScore ( ) : void
TestMultiValuedField ( ) : void
TestScore ( ) : void
TestShort ( ) : void
TestShortMissing ( ) : void
TestShortMissingLast ( ) : void
TestShortReverse ( ) : void
TestSortOneDocument ( ) : void
TestSortOneDocumentWithScores ( ) : void
TestSortTwoFields ( ) : void
TestString ( ) : void
TestStringMissing ( ) : void
TestStringMissingSortedFirst ( ) : void
TestStringMissingSortedFirstReverse ( ) : void
TestStringReverse ( ) : void
TestStringVal ( ) : void
TestStringValMissing ( ) : void
TestStringValMissingSortedLast ( ) : void
TestStringValMissingSortedLastReverse ( ) : void
TestStringValReverse ( ) : void

Method Details

SetUp() public method

LUCENENET specific. Ensure we have an infostream attached to the default FieldCache when running the tests. In Java, this was done in the Core.Search.TestFieldCache.TestInfoStream() method (which polluted the state of these tests), but we need to make the tests self-contained so they can be run correctly regardless of order. Not setting the InfoStream skips an execution path within these tests, so we should do it to make sure we test all of the code.
public SetUp ( ) : void
return void

TearDown() public method

LUCENENET specific. See SetUp(). Dispose our InfoStream and set it to null to avoid polluting the state of other tests.
public TearDown ( ) : void
return void