0

I am trying to test each components of my WPF application by using NUnit. But how to test the graphical components like button, grid, textblock, richtextbox etc?

itzmebibin
  • 9,199
  • 8
  • 48
  • 62

1 Answers1

1

Take a look at Teststack.White . Pretty easy to use:

  1. Start application.
  2. Attach app process.
  3. Find Window by (SearchCriteria).
  4. Get element you want to test by Window.Get(SearchCriteria)
  5. Test whatever you want

Tutorial Link

Cheers

unickq
  • 11
  • 1