コード例 #1
0
 public void CanDivide()
 {
     var engine = new Engine();
       engine.Digit(6);
       engine.Divide();
       engine.Digit(2);
       engine.Equals();
       Assert.AreEqual(3, engine.Value);
 }
コード例 #2
0
 public void CanDivideWithFractionalResult()
 {
     var engine = new Engine();
       engine.Digit(3);
       engine.Divide();
       engine.Digit(2);
       engine.Equals();
       Assert.AreEqual(1.5, engine.Value);
 }