2
Vote

SelectionStart throws exception after selecting an object & text

description

Unit test SelectObjectAndTextTest fails.
 
Repro:
 
Insert an object
Insert a string
Select all
textEdit.QuerySelectionText().SelectionStart
 
EXPECTED: a value
ACTUAL: ArgumentOutOfRangeException
 
I'm not sure what SelectionStart should return. According to my tests, with no objects it always returns 0. I'm pretty sure it should be 0, but I am not sure when the exception should get thrown. Don't want to fix one and break another.

comments