public void DivisionByZeroErrorTest()
        {
            //Arrange
            IDoubleValueCompute newOne = new DoubleValue();

            //Act and Assert
            Assert.That(() => newOne.ComputeIt(20, 0, OperationType.Division), Throws.TypeOf <DivideByZeroException>());
        }
        public void ModulusTest()
        {
            //Arrange
            IDoubleValueCompute newOne = new DoubleValue();

            //Act
            decimal actual   = newOne.ComputeIt(11, 2, OperationType.Modulus);
            decimal expected = 1;

            //Assert
            Assert.That(actual, Is.EqualTo(expected));
        }
        public void PowerTest()
        {
            //Arrange
            IDoubleValueCompute newOne = new DoubleValue();

            //Act
            decimal actual   = newOne.ComputeIt(100, 2, OperationType.Power);
            decimal expected = 10000;

            //Assert
            Assert.That(actual, Is.EqualTo(expected));
        }
        public void MultiplicationTest()
        {
            //Arrange
            IDoubleValueCompute newOne = new DoubleValue();

            //Act
            decimal actual   = newOne.ComputeIt(10, 20, OperationType.Multiplication);
            decimal expected = 200;

            //Assert
            Assert.That(actual, Is.EqualTo(expected));
        }