public void Should_Output2Point2_WhenDoind6Point82Devide3Point1()
        {
            //arrange
            var outputServise = new Mock<IOutputServise>();
            var calculator = new CalculatorEngine(outputServise.Object);

            //act
            calculator.Devide(6.82, 3.1);

            //assert
            outputServise.Verify(x => x.Output(2.2), Times.Once());
        }
        public void ShouldNot_ThrowException_WhenDoindDevideBy0()
        {
            //arrange
            var outputServise = new Mock<IOutputServise>();
            var calculator = new CalculatorEngine(outputServise.Object);

            //act
            calculator.Devide(1.1, 0);

            //assert
            Assert.Pass();
        }
        public void Should_ReturnDevideBy0_WhenDoind1Point2Devide0()
        {
            //arrange
            var outputServise = new Mock<IOutputServise>();
            var calculator = new CalculatorEngine(outputServise.Object);
            string expectedResult = "Devide by 0!";

            //act
            calculator.Devide(1.2, 0);

            //assert
            Assert.AreEqual(calculator.correctResult, expectedResult);
        }
        public void Should_Return2Point2_WhenDoind6Point82Devide3Point1()
        {
            //arrange
            var outputServise = new Mock<IOutputServise>();
            var calculator = new CalculatorEngine(outputServise.Object);
            string expectedResult = "2,2000";

            //act
            calculator.Devide(6.82, 3.1);

            //assert
            Assert.AreEqual(calculator.correctResult, expectedResult);
        }