public void TmaxCalculationWithZeroDepreciationReturnOk() { var input = MockData.InputForZeroDepreciationRate(); var tmax = OilFormula.CalculateTmax(input.NumerbOfDrills, input.Period, input.InitialOutPut, input.DepreciationRate); Assert.AreEqual(tmax, 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); }
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); }