Ejemplo n.º 1
0
 public void Rate_0CumulativeComponentDependencies_AverageRated0()
 {
     Assert.IsTrue(double.IsNaN(CreateAverage.CumulativeComponentDependency()));
 }
Ejemplo n.º 2
0
 public void Rate_0MethodLengths_AverageRated0()
 {
     Assert.AreEqual(0.0, CreateAverage.RatedMethodLength(), Constants.DELTA);
 }
Ejemplo n.º 3
0
 public void Rate_4And3And3And3CumulativeComponentDependencies_RatedPoint8125()
 {
     Assert.AreEqual(0.8125, CreateAverage.CumulativeComponentDependency(4, 3, 3, 3), Constants.DELTA);
 }
Ejemplo n.º 4
0
 public void Rate_1MethodLength10_AverageRatedPoint1111()
 {
     Assert.AreEqual(0.1111, CreateAverage.RatedMethodLength(10), Constants.DELTA);
 }
Ejemplo n.º 5
0
 public void Rate_31MethodLengths_AverageRatedPoint0143()
 {
     Assert.AreEqual(0.0148, CreateAverage.RatedMethodLength(
                         13, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1), Constants.DELTA);
 }
 public void Rate_3NumberOfNamespacesInCycle_AverageRated0()
 {
     Assert.AreEqual(0.6667, CreateAverage.RatedNumberOfNamespacesInCycle(2, 2, 1), Constants.DELTA);
 }
 public void Rate_0NumberOfNamespacesInCycle_AverageRated0()
 {
     Assert.IsTrue(double.IsNaN(CreateAverage.RatedNumberOfNamespacesInCycle()));
 }
Ejemplo n.º 8
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);
 }
Ejemplo n.º 9
0
 public void Rate_0CyclomaticComplexities_AverageRated0()
 {
     Assert.AreEqual(0.0, CreateAverage.RatedCyclomaticComplexity(), Constants.DELTA);
 }
Ejemplo n.º 10
0
 public void Rate_1CyclomaticComplexity5_AverageRatedPoint25()
 {
     Assert.AreEqual(0.25, CreateAverage.RatedCyclomaticComplexity(5), Constants.DELTA);
 }
Ejemplo n.º 11
0
 public void Rate_0NumberOfNonStaticPublicFields_AverageRated0()
 {
     Assert.AreEqual(0.0, CreateAverage.RatedNumberOfNonStaticPublicFields(), Constants.DELTA);
 }
Ejemplo n.º 12
0
 public void Rate_4NumberOfNonStaticPublicFields_AverageRatedPoint50()
 {
     Assert.AreEqual(0.50, CreateAverage.RatedNumberOfNonStaticPublicFields(2, 2, 0, 0), Constants.DELTA);
 }
Ejemplo n.º 13
0
 public void Rate_0ClassSizes_AverageRated0()
 {
     Assert.AreEqual(0.0, CreateAverage.RatedClassSize());
 }
Ejemplo n.º 14
0
 public void Rate_4ClassSizes_AverageRatedPoint0833()
 {
     Assert.AreEqual(0.0833, CreateAverage.RatedClassSize(5, 13, 15, 1), Constants.DELTA);
 }