MovingBlocks
Write some unit tests for CardLayout
Terasology's NUI interface framework includes layouts - containers for several interface elements that are structured according to the type of the layout. One of the layouts, ColumnLayout
(places each element to the right of the previous one) has a fairly comprehensive unit test suite - expanding it to other layouts would go a long way towards improving the game's test coverage.
Definition of 'Done'
- A pull request is submitted to Terasology's engine repository with a new UI layout unit test, based on (and contained alongside) ColumnLayoutTest while containing tests for the CardLayout class.
Where to start?
- The source code for NUI layouts is located in the
rendering.nui.layouts
package - you'll want to familiarize yourself with the common layouts before starting. - To get started with devveloping NUI interfaces and unit testing, check out the NUI Quick Start and Unit Testing tutorials respectively.
Task tags
Students who completed this task
Isaac