예제 #1
0
        public void TestMethodDiv()
        {
            var appContext = new StudyWPF.Models.AppContext();

            var calc = appContext.Calc;

            calc.Lhs          = 100;
            calc.Rhs          = 2;
            calc.OperatorType = OperatorType.Div;
            calc.Execute();
            Assert.AreEqual(50, calc.Answer);
        }
예제 #2
0
        public void TestMethodAdd()
        {
            var appContext = new StudyWPF.Models.AppContext();

            var calc = appContext.Calc;

            calc.Lhs          = 10;
            calc.Rhs          = 3;
            calc.OperatorType = OperatorType.Add;
            calc.Execute();
            Assert.AreEqual(13, calc.Answer);
        }