assertThat(count).isEqualTo(101).isEqualTo(100 + 1);
}
@Test
public void should_count_covered_elements_for_new_code() {
Measure newLines = measureWithVariation(1, 100.0);
Measure newUncoveredConditions = measureWithVariation(1, 10.0);
Measure newUncoveredLines = measureWithVariation(1, 5.0);
Measure newConditions = measureWithVariation(1, 1.0);
DecoratorContext context = mockNewContext(newLines, newUncoveredConditions, newUncoveredLines, newConditions);
long count = decorator.countCoveredElementsForNewCode(context, 1);
assertThat(count).isEqualTo(86).isEqualTo(100 + 1 - 10 - 5);