Hi again!
A few more errors:
1. In AccountForEfficienciesNoOverlapTest.cs
in test: public void AccountForEfficiencies_FixedEnd_NoOverlap_ThreeIntervals4()
line 256:
// Total duration 20 + 58.5 = 73.5 mins
should be:
// Total duration 20 + 58.5 = 78.5 mins
and thus, line 274:
var result = new DateInterval(end.AddMinutes(-73.5), end);
should be:
var result = new DateInterval(end.AddMinutes(-78.5), end);
2. In ...
in test: public void AccountForEfficiencies_Overlap1()
line 32:
var efficiency1 = new DateIntervalEfficiency(new DateInterval(start, start.AddMinutes(50)), 200);
should be:
var efficiency1 = new DateIntervalEfficiency(new DateInterval(start.AddMinutes(30), start.AddMinutes(50)), 200);
(although the wrong version has no real effect due to overlapping)
and you can also flip values for efficiency1 & 2 to better reflect the illustration in the comment.
line 61:
var efficiency3 = new DateIntervalEfficiency(new DateInterval(start.AddMinutes(50), start.AddMinutes(60)), 300, 1);
should be:
var efficiency3 = new DateIntervalEfficiency(new DateInterval(start.AddMinutes(50), start.AddMinutes(60)), 500, 1);
3. In same file:
in test: public void AccountForEfficiencies_Overlap5()
line 237:
DateTime end = start.AddMinutes(90);
should be:
DateTime end = start.AddMinutes(100);
That's it, that's all!
Now i can pass all the unit tests :)
Cheers!