Exemplo n.º 1
0
        public void DividingTestIncorrect()
        {
            //arrange
            var manager     = new CalcManager(new DbManager());
            var firstValue  = 738;
            var secondValue = 45;

            //Act
            manager.Dividing(firstValue, secondValue);

            //Assert
            Assert.AreNotEqual(manager.Expression.ResultValue, 32);
        }
Exemplo n.º 2
0
        public void DividingTestCorrect()
        {
            //arrange
            var manager     = new CalcManager(new DbManager());
            var firstValue  = 96;
            var secondValue = 8;

            //Act
            manager.Dividing(firstValue, secondValue);

            //Assert
            Assert.AreEqual(manager.Expression.ResultValue, 12);
        }