public void Rate_NumberOfNamespacesInCycle0_RatedFalse()
 {
     Assert.IsFalse(CreateRated.NumberOfNamespacesInCycle(0));
 }
Esempio n. 2
0
 public void Rate_CyclomaticComplexity0_Rated0()
 {
     Assert.AreEqual(0.0, CreateRated.CyclomaticComplexity(0));
 }
 public void Rate_NumberOfNamespacesInCycle2_RatedTrue()
 {
     Assert.IsTrue(CreateRated.NumberOfNamespacesInCycle(2));
 }
 public void Rate_MethodLengthMinus1_Rated0()
 {
     Assert.AreEqual(0, CreateRated.MethodLength(-1));
 }
Esempio n. 5
0
 public void Rate_CyclomaticComplexity5_RatedPoint25()
 {
     Assert.AreEqual(0.25, CreateRated.CyclomaticComplexity(5), Constants.DELTA);
 }
 public void Rate_MethodLength9_Rated0()
 {
     Assert.AreEqual(0, CreateRated.MethodLength(9));
 }
 public void Rate_MethodLength10_RatedPoint11()
 {
     Assert.AreEqual(0.11111111, CreateRated.MethodLength(10), Constants.DELTA);
 }
 public void Rate_MethodLengthMinus1_FallbackToStatementsRatedPoint11()
 {
     Assert.AreEqual(0.11111111, CreateRated.MethodLength(-1, 10), Constants.DELTA);
 }
 public void Rate_NumberOfNonStaticPublicFields0_Rated0()
 {
     Assert.AreEqual(0.0, CreateRated.NumberOfNonStaticPublicFields(0));
 }
 public void Rate_NumberOfNonStaticPublicFields3_Rated1()
 {
     Assert.AreEqual(1.0, CreateRated.NumberOfNonStaticPublicFields(3), Constants.DELTA);
 }
Esempio n. 11
0
 public void Rate_ClassSize0_Rated0()
 {
     Assert.AreEqual(0.0, CreateRated.ClassSize(0), Constants.DELTA);
 }
Esempio n. 12
0
 public void Rate_ClassSize13_RatedPoint0833()
 {
     Assert.AreEqual(0.0833, CreateRated.ClassSize(13), Constants.DELTA);
 }