public void CreateDataSet() { _memory = new Utils.MemoryMonitor(); Utils.CheckFileExists(DataFile); _dataSet = DataSetBuilder.File() .ConfigureDefaultCaches() .SetCacheSize(CacheType.ValuesCache, ValuesCacheSize) .Build(DataFile); }
public void CreateDataSet() { _memory = new Utils.MemoryMonitor(); Utils.CheckFileExists(DataFile); var file = new FileInfo(DataFile); try { var array = new byte[file.Length]; using (var stream = file.OpenRead()) { stream.Read(array, 0, (int)file.Length); } _provider = TrieFactory.Create(array); } catch(OutOfMemoryException) { Assert.Inconclusive( "Not enough memory to perform memory test on data file '{0}' of size '{1}'MB", file.Name, file.Length / (1024 * 1024)); } }
public void CreateDataSet() { _memory = new Utils.MemoryMonitor(); Utils.CheckFileExists(DataFile); var file = new FileInfo(DataFile); try { var array = new byte[file.Length]; using (var stream = file.OpenRead()) { stream.Read(array, 0, (int)file.Length); } _provider = TrieFactory.Create(array); } catch (OutOfMemoryException) { Assert.Inconclusive( "Not enough memory to perform memory test on data file '{0}' of size '{1}'MB", file.Name, file.Length / (1024 * 1024)); } }
public void CreateDataSet() { _memory = new Utils.MemoryMonitor(); Utils.CheckFileExists(DataFile); _dataSet = StreamFactory.Create(DataFile); }
public void CreateDataSet() { _memory = new Utils.MemoryMonitor(); Utils.CheckFileExists(DataFile); _provider = TrieFactory.Create(DataFile); }