Lucene.Net.Util.LuceneTestCase.NewDirectory C# (CSharp) Метод

NewDirectory() публичный статический Метод

Returns a new Directory instance. Use this when the test does not care about the specific Directory implementation (most tests).

The Directory is wrapped with BaseDirectoryWrapper. this means usually it will be picky, such as ensuring that you properly close it and all open files in your test. It will emulate some features of Windows, such as not allowing open files to be overwritten.

public static NewDirectory ( ) : BaseDirectoryWrapper
Результат BaseDirectoryWrapper
        public static BaseDirectoryWrapper NewDirectory()
        {
            return NewDirectory(Random());
        }

Same methods

LuceneTestCase::NewDirectory ( Directory d ) : BaseDirectoryWrapper
LuceneTestCase::NewDirectory ( Random r ) : BaseDirectoryWrapper
LuceneTestCase::NewDirectory ( Random r, Directory d ) : BaseDirectoryWrapper