示例#1
0
 /// <summary>
 /// Executes the task.
 /// </summary>
 protected override void ExecuteTask()
 {
     foreach (string counter in Counter.All)
     {
         PropertyDictionaryHelper.SetInt(Properties, counter, 0);
     }
 }
示例#2
0
 static void UpdateNAntProperties(PropertyDictionary properties, ReportResult reportResult)
 {
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Asserts, reportResult.Counter.AssertCount);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Failures, reportResult.Counter.FailureCount);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Ignored, reportResult.Counter.IgnoreCount);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Run, reportResult.Counter.RunCount);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Skipped, reportResult.Counter.SkipCount);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Successes, reportResult.Counter.SuccessCount);
 }
 static void UpdateNAntProperties(PropertyDictionary properties,
                                  int contexts,
                                  int specifications,
                                  int passedSpecifications,
                                  int failedSpecifications,
                                  int ignoredSpecifications,
                                  int unimplementedSpecifications)
 {
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Contexts, contexts);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.Specifications, specifications);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.PassedSpecifications, passedSpecifications);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.FailedSpecifications, failedSpecifications);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.IgnoredSpecifications, ignoredSpecifications);
     PropertyDictionaryHelper.AddOrUpdateInt(properties, Counter.UnimplementedSpecifications, unimplementedSpecifications);
 }