public async Task TestInitialize() { DBFilesBTreeTests.DeleteFiles(); this.provider = new FilesProvider("Data", DBFilesBTreeTests.CollectionName, 8192, BlocksInCache, 8192, Encoding.UTF8, 10000, true); this.file = await this.provider.GetFile("Default"); }
public async Task TestInitialize() { DBFilesBTreeTests.DeleteFiles(); #if LW this.provider = await FilesProvider.CreateAsync("Data", DBFilesBTreeTests.CollectionName, 8192, BlocksInCache, 8192, Encoding.UTF8, 10000); #else this.provider = await FilesProvider.CreateAsync("Data", DBFilesBTreeTests.CollectionName, 8192, BlocksInCache, 8192, Encoding.UTF8, 10000, true); #endif this.file = await this.provider.GetFile("Default"); }
public static async Task ClassInitialize(TestContext Context) { DBFilesBTreeTests.DeleteFiles(); #if LW provider = await FilesProvider.CreateAsync("Data", "Default", BlockSize, BlocksInCache, Math.Max(BlockSize / 2, 1024), Encoding.UTF8, 10000); #else provider = await FilesProvider.CreateAsync("Data", "Default", BlockSize, BlocksInCache, Math.Max(BlockSize / 2, 1024), Encoding.UTF8, 10000, true); #endif file = await provider.GetFile("Default"); }