Пример #1
0
 private void ChangeText()
 {
     exprLabel.Text = data.GetExpr();
     if (data.GetStateAnswer())
     {
         ansLabel.Text = data.GetAnswer().ToString();
     }
     else
     {
         ansLabel.Text = "0";
     }
     Console.WriteLine(data.GetExpr());
 }
Пример #2
0
        public void backSpaceTest(string expr, string expected)
        {
            DataCollector DC = new DataCollector();

            DC.SetExpr(expr);

            DC.BackSpaceExpression();

            Assert.Equal(expected, DC.GetExpr());
        }
Пример #3
0
        public void addTest(string expr, string add, string expected)
        {
            DataCollector DC = new DataCollector();

            DC.SetExpr(expr);

            DC.ChangeState();

            DC.AddStringExpression(add);

            Assert.Equal(expected, DC.GetExpr());
        }