public void DeliversNameInParallel() { using (var dir = new TempDirectory()) { var hive = new FileHive(dir.Value().FullName, "product"); Parallel.For(0, Environment.ProcessorCount << 4, i => { Assert.Equal("product", hive.Scope()); }); } }
public void WorksWithFileHive() { using (var dir = new TempDirectory()) { var valve = new LocalSyncPipe(); var hive = new FileHive(dir.Value().FullName, "product"); hive.Catalog().Add("2CV"); Parallel.For(0, Environment.ProcessorCount << 4, i => { hive.Comb("2CV"); hive.Scope(); hive.HQ(); }); } }