I have googled and read few articles about the TDD for UI. I am not very much clear about how to start the implementation of the Graphics Application using Test Driven Development or how to write unit test cases for graphics application.
The main features of the application is rendering the UI based on the user inputs.
- draw canvas
- Rendering of the lines , circles, oval, square and other shapes.
I am finding it difficult how to test the rendering of the shapes -
- Whether to test that given draw methods are invoked or not.
- Check if end points for given shapes are calculated correctly or not