Nested collections convert to domain types
All 3 scenarios hold
A richer domain example. Each cell holds a whole class register, which is a map of student names to grade lists. Custom type converters turn it into the domain types Students and Grades before the test method runs.
A student passes on their own average, so Pass Count counts students and not grades.
The second row holds the pair that decides the rule. David's average is just below the pass mark. Emma's average is exactly the pass mark.
expected outcome
broken scenario
| Scenario | Student grades | Pass Mark | Highest Grade? | Average Grade? | Pass Count? |
|---|---|---|---|---|---|
| Every student above the mark |
| 70 | 98 | 89.4 | 3 |
| One below, one at the mark |
| 70 | 82 | 71.0 | 2 |
| No students at all | [:] | 70 | 0 | 0.0 | 0 |