Exemplo n.º 1
0
        public void TmaxCalculationWithZeroDepreciationReturnOk()
        {
            var input = MockData.InputForZeroDepreciationRate();
            var tmax  = OilFormula.CalculateTmax(input.NumerbOfDrills, input.Period, input.InitialOutPut, input.DepreciationRate);

            Assert.AreEqual(tmax, 0);
        }
Exemplo n.º 2
0
        public void OutTmaxCalculationWithAllValidInputReturnOk()
        {
            var input = MockData.ValidInput();

            var tmax = OilFormula.CalculateTmax(input.NumerbOfDrills, input.Period, input.InitialOutPut, input.DepreciationRate);

            var outTmax = OilFormula.CalculateOutTmax(input.NumerbOfDrills, tmax, input.Period, input.InitialOutPut,
                                                      input.DepreciationRate);

            Assert.AreEqual(outTmax, 9595.0);
        }
Exemplo n.º 3
0
        public void OutTmaxCalculationWithZeroDrillAndPeriodReturnOk()
        {
            var input = MockData.InputForZeroDrill();

            input.Period = 0;
            var tmax = OilFormula.CalculateTmax(input.NumerbOfDrills, input.Period, input.InitialOutPut, input.DepreciationRate);

            var outTmax = OilFormula.CalculateOutTmax(input.NumerbOfDrills, tmax, input.Period, input.InitialOutPut,
                                                      input.DepreciationRate);

            Assert.AreEqual(outTmax, 0.0);
        }