Пример #1
0
        public void CanCalculatePowerOf2Expressions()
        {
            var action = new Calculator();

            action.ActOn(new TextItem("pow(10,2)"));
            Assert.Equal("100", action.Text);
        }
Пример #2
0
        public void CanCalculateSimpleExpressions()
        {
            var action = new Calculator();

            action.ActOn(new TextItem("21 + 21"));
            Assert.Equal("42", action.Text);
        }
Пример #3
0
 public void CanCalculateSimpleExpressions()
 {
     var action = new Calculator();
     action.ActOn(new TextItem("21 + 21"));
     Assert.Equal("42", action.Text);
 }
Пример #4
0
 public void CanCalculatePowerOf2Expressions()
 {
     var action = new Calculator();
     action.ActOn(new TextItem("pow(10,2)"));
     Assert.Equal("100", action.Text);
 }