Example #1
0
 public void CrapLoad_should_be_zero_if_crap_is_less_than_crap_threshold()
 {
     var crap = new Crap(30) {CodeCoverage = 100.Percent(), CyclomaticComplexity = 1};
     crap.CrapLoad().ShouldEqual(0);
 }
Example #2
0
 public void CrapLoad_should_be_x_if_crap_is_larger_than_crap_threshold()
 {
     var crap = new Crap(30) {CodeCoverage = 0.Percent(), CyclomaticComplexity = 6};
     crap.CrapLoad().ShouldEqual(6.2);
 }