Unity builds compile several test files in one translation unit, so
helpers with the same name in anonymous namespaces collided. Give the
helpers file-specific names:
- RimWorkflowDefinition-Test: taskByName -> definitionTaskByName
- RimSummaryCalculationCollection-Test: createFieldCalculation ->
createCollectionFieldCalculation
- RigPorvSoilSgasResultCalculator-Test: MockCase/createMockCase ->
PorvMockCase/createPorvMockCase
deleteCalculation() removes the calculation before rebuildCaseMetaData() is called, and updateDataDependingOnCalculations() returned early for an empty collection. The addresses created by the last calculation were then left behind in the readers until the next refresh or a reload of the project.
Perform one more update after the last calculation is deleted, and keep the early return for the case where no calculations have been present.