Executed features | Passed | Failures | Errors | Skipped | Success rate | Time |
---|---|---|---|---|---|---|
2 | 2 | 0 | 0 | 0 | 100.0% | 0.005 seconds |
Zone of work
class representing the work area
should accurately calculate the work area of the zone
Return
(0)
|
|||||||||||||||||
Given:
|
totalSurface.area() >> totalArea apertures.area() >> aperturesArea |
||||||||||||||||
When:
|
def zone = new Zone(expenses, totalSurface, apertures) |
||||||||||||||||
Then:
|
zone.area() == expectedArea |
||||||||||||||||
Examples:
|
|
3/3 passed
|
|||||||||||||||
should calculate the expenses for the zone
Return
(0)
|
|||||||||||||||||
Given:
|
expenses.apply(_ as Surface) >> totalBills |
||||||||||||||||
When:
|
def zone = new Zone(expenses, totalSurface, apertures) |
||||||||||||||||
Then:
|
zone.bill() == totalBills |
||||||||||||||||
Examples:
|
|
1/1 passed
|