Reputation: 821
Simple question:
I'm building a WPF application in which the user is able to input some data (e.g.: path to specific files). However, I would like to test my application with my own data and this data never moves so each time I want to test my application I have to enter the same data into my application.
I know I can change this data programmaticaly(in xaml or in cs-files) when starting up the application. I was wondering, however, if there is a good way to do this in visual studio without altering my code.
Thanks
Upvotes: 0
Views: 60
Reputation: 22378
You are obviously looking for automated testing.
You can check out Coded UI Tests: http://msdn.microsoft.com/en-us/library/ff977233.aspx
Or simply write unit tests on your UI code (you have separated your logic in a controller class, haven't you?).
Upvotes: 1