How many items are there in a WPF ListBox?

I received a question through my blog. The question was about “a GroupBox which lists some errors. The count of these Errors(ListItems) vary. How can I count the no. of Rows in GroupBox?” Technically, a GroupBox contains only 1 item defined by its content but that’s not a useful answer!  Often the content of a GroupBox is…

1

Testing resources from the WPF team

Hey!If you are new to testing WPF applications or to testing in general, the WPF team has just released a new version of their quality guide. It has a lot of useful information and resource links related to testing in general and testing of GUI applications. You can either look at an online version or…

1

Testing WPF applications with the White UI Test framework

For the past few weeks, I have been test driving the White UI Test framework. It is an open source extension for the NUnit test framework. There are already blog tutorials on using the White UI Test framework with WinForms (see Ben Hall’s blog) so I focused on using it to test WPF applications. The…

10

Running WPF tests under NUnit

Our team recently began work on a new project and we’re using WPF. Since we want to make our projects accessible to people who are not using VS Test Suite, we use NUnit. The immediate problem we ran into was that NUnit could not run the tests. It threw a System.InvalidOperationException with an error message reading…

1