Exemplo n.º 1
0
 public void CanDivide()
 {
     var engine = new Engine();
       engine.Digit(6);
       engine.Divide();
       engine.Digit(2);
       engine.Equals();
       Assert.AreEqual(3, engine.Value);
 }
Exemplo n.º 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);
 }