views:

21

answers:

0

I would like to create a custom user control, which extends the textbox in WPF, but only accepts numeric values. When the user types in a non numerical value, the textbox should not respond to the input.

How can I simulate userinput to a textbox, to be able to create a unit test for this behaviour?

I am using the built in test framework in VS2010.