Added correct registration of pattern and properties to WPF system, so that they're discoverable via AutmationProperty.LookupById/AutomationPattern.LookupById. Also registration info could be obtained now via AutomationProperty/AutomationPattern types instead of just an int Id. Plus test
Auto-detection of WPF was a bad idea, because if you're getting registration info in form of AutomationProperty - this info is required at client side as well, where no WPF dispatcher will be running most probably. Hence, requirement to augment for WPF should be defined by pattern itself, thus made ctor parameter of CustomPatternBase
WPF augmentation seems not very coupled to general UIA patterns functionality, so removed makeAugmentationForWpfPeers from Register method