public void GenerateParallel() { TestTool.RunTasks(100, () => { var guid = GuidTool.NewComb(); Assert.IsInstanceOf <Guid>(guid); Assert.AreNotEqual(Guid.Empty, guid); }); }
public void GenerateTest() { Enumerable.Range(0, 100) .Select(i => GuidTool.NewComb()) .RunEach(guid => { Assert.IsInstanceOf <Guid>(guid); Assert.AreNotEqual(Guid.Empty, guid); }); }