My situation is as follows:
I have a grid of text blocks which are supposed to be ordered in alphabetical order, like say:
A00000
A00001
A00002
B00001
and I'd like to write a test case to verify this.
The issues I have are two fold:
How do I do a comparison check between rows? As in check if row 2 is greater than row 1, then check if row 3 is greater than row 2, so on and so forth. I know I can do tests for the values in a single row but not sure how I'm supposed to tell the program to keep going down new rows programatically.
My other somewhat more pressing problem is that I've found text blocks do not have greater than/less than comparisons. A number based property such as 'ActualHeight' does have such comparisons and it seems strange text blocks do not considering C# does have gerater than and less than operations you can carry out on strings (and this is how the grid we're using orders data).
So any ideas on what I should do to achieve this? I'm using silverlight.
I have a grid of text blocks which are supposed to be ordered in alphabetical order, like say:
A00000
A00001
A00002
B00001
and I'd like to write a test case to verify this.
The issues I have are two fold:
How do I do a comparison check between rows? As in check if row 2 is greater than row 1, then check if row 3 is greater than row 2, so on and so forth. I know I can do tests for the values in a single row but not sure how I'm supposed to tell the program to keep going down new rows programatically.
My other somewhat more pressing problem is that I've found text blocks do not have greater than/less than comparisons. A number based property such as 'ActualHeight' does have such comparisons and it seems strange text blocks do not considering C# does have gerater than and less than operations you can carry out on strings (and this is how the grid we're using orders data).
So any ideas on what I should do to achieve this? I'm using silverlight.