Пример #1
0
 public void should_equal_2cm_given_1cm_plus_1cm()
 {
     var _2Cm = new Centimeter(2);
     (_1Cm + _1Cm).should_be(_2Cm);
 }
Пример #2
0
 public void should_1Dm_equals_10Cm()
 {
     var _10Cm = new Centimeter(10);
     _10Cm.should_be(_1Dm);
 }
Пример #3
0
 public void should_equal_11_centimeters_given_1_centimeter_and_1_decimeter()
 {
     var _1Dm = new Decimeter(1);
     var _11Cm = new Centimeter(11);
     (_1Cm + _1Dm).should_be(_11Cm);
 }
Пример #4
0
 public void should_equal_101_centimeters_given_1_centimeter_and_1_meter()
 {
     var _1M = new Meter(1);
     var _101Cm = new Centimeter(101);
     (_1Cm + _1M).should_be(_101Cm);
 }
Пример #5
0
 public void should_1_meter_equals_100_centimeters()
 {
     var _100CM = new Centimeter(100);
     var _1M = new Meter(1);
     _1M.should_be(_100CM);
 }
Пример #6
0
 public void should_1_decimeter_equals_10_centimeter()
 {
     var _1DM = new Decimeter(1);
     var _10CM = new Centimeter(10);
     _1DM.should_be(_10CM);
 }
Пример #7
0
 public void Setup()
 {
     _1Cm = new Centimeter(1);
 }