public void TestAddSubtractAndEquate()
 {
     var c = new CalculatorViewModel();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('1');
     c.PlusMinusCommand.Execute();
     c.AddCommand.Execute();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('0');
     c.SubtractCommand.Execute();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('0');
     c.EquateCommand.Execute();
     Assert.IsTrue(Decimal.Equals(c.Result, -2.1M));
 }
 public void TestMultiplyAndDivide()
 {
     var c = new CalculatorViewModel();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('0');
     c.PlusMinusCommand.Execute();
     c.MultiplyCommand.Execute();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('0');
     c.DivideCommand.Execute();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('0');
     c.EquateCommand.Execute();
     Assert.IsTrue(Decimal.Equals(c.Result, -2.0M));
 }
 public void TestAdd()
 {
     var c = new CalculatorViewModel();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('1');
     c.AddCommand.Execute();
     c.InputSymbol('2'); c.InputSymbol(','); c.InputSymbol('0');
     c.EquateCommand.Execute();
     Assert.IsTrue(Decimal.Equals(c.Result, 4.1M));
 }