petmongrels/white — pull request #4 by matt-jenner (2012-07-02 10:48:17+00:00)
Title: Itemsmap

Hi,

I've added some additional functionality into SearchCriteria as I noticed you could only use SearchCriteria.ByNativeProperty with string-based properties and AutomationElement gives you a number of properties that are bools.

I've added in two new methods into SearchCriteria.cs to cover this:

- ByNativeProperty(AutomationProperty automationProperty, bool value)
- AndNativeProperty(AutomationProperty automationProperty, bool value)

These in-turn call the new bool version of CreateForNativeProperty I've added to SearchConditionFactory.cs.

I've added a new set of test-cases for this property in the Core/Tests/UITests folder to cover the new NativeProperty type in this [file](https://github.com/matt-jenner/white/blob/674b74e37f3acbba57013a5721f43f4062c78250/Components/Core/Tests/Unit/UIItems/Finders/NativePropertyConditionTest.cs), but I haven't updated the csproj file as I noticed it's in vs2008 format (I only have vs2010) so that would need to be done after merging this change in.

This is my first github commit so hope I've done everything right, please let me know if I've missed something.

Thanks,

Matt Jenner