Example #1
0
 public void Rate_31CyclomaticComplexitiesOneWith6_AverageRatedPoint016()
 {
     Assert.AreEqual(0.0161, CreateAverage.RatedCyclomaticComplexity(
                         6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), Constants.DELTA);
 }
Example #2
0
 public void Rate_0CyclomaticComplexities_AverageRated0()
 {
     Assert.AreEqual(0.0, CreateAverage.RatedCyclomaticComplexity(), Constants.DELTA);
 }
Example #3
0
 public void Rate_1CyclomaticComplexity5_AverageRatedPoint25()
 {
     Assert.AreEqual(0.25, CreateAverage.RatedCyclomaticComplexity(5), Constants.DELTA);
 }