Пример #1
0
        public void testDivisionOperator()
        {
            //arrange
            var x = new DetermineOperator();

            x.getOperator("divide");
            Assert.AreEqual(x.operation, "/");
        }
Пример #2
0
        public void testSubtractionOperator()
        {
            //arrange
            var x = new DetermineOperator();

            x.getOperator("subtract");
            Assert.AreEqual(x.operation, "-");
        }
Пример #3
0
        public void testMultiplicationOperator()
        {
            //arrange
            var x = new DetermineOperator();

            x.getOperator("multiply");
            Assert.AreEqual(x.operation, "*");
        }
Пример #4
0
        public void testAdditionOperator()
        {
            //arrange
            var x = new DetermineOperator();

            x.getOperator("add");
            Assert.AreEqual(x.operation, "+");
        }