Hi Shagil,
From a unit-test perspective, there are two things to check here...
1) Is the user input being correctly translated to a position
2) Is the saved position used correctly in the display
I'd make sure to test these two aspects of the solution separately.
Charlie
> -----Original Message-----
> From:
testdrivendevelopment@...
> [mailto:
testdrivendevelopment@...] On Behalf Of shagil
> Sent: Wednesday, October 07, 2009 4:42 AM
> To:
testdrivendevelopment@...
> Subject: [TDD] TDD to check the layout
>
> Hi All,
>
> We are going to develop an application which arrange the UI
> components based on user inputs.
> How to write a test to check the layout of the UI? Or just
> checking the (x,y) position of the component is enough?
>
> Thanks in advance
> Shagil
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>