예제 #1
0
 public void Setup()
 {
     _1Dm = new Decimeter(1);
     _2Dm = new Decimeter(2);
     _10Dm = new Decimeter(10);
     _11Dm = new Decimeter(11);
     _1M = new Meter(1);
 }
예제 #2
0
 public void should_equal_2_meter_given_1m_plus_10dm()
 {
     var _2M = new Meter(2);
     (_10Dm + _1M).should_be(_2M);
 }
예제 #3
0
 public void should_1_meter_equals_100_centimeters()
 {
     var _100CM = new Centimeter(100);
     var _1M = new Meter(1);
     _1M.should_be(_100CM);
 }
예제 #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 setUp()
 {
     _1M = new Meter(1);
     _2M = new Meter(2);
     _3M = new Meter(3);
 }