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