public void OutTmaxCalculationWithZeroPeriodReturnOk() { var input = MockData.InputForZeroPeriod(); 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, 12750.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); }