public void Wpf_NullStringStandaloneProperty_RetrievedAsEmptyString() { TestOfMoreThanTwoPatternPropertiesPattern.Initialize(); var val = (string)_wTestControlElement.GetCurrentPropertyValue(TestOfMoreThanTwoPatternPropertiesPattern.NullStringStandaloneProperty); Assert.IsEmpty(val); }
public void Native_EnumTypedProperty_RetrievedCorrectly() { TestOfMoreThanTwoPatternPropertiesPattern.Initialize(); var pattern = (ITestOfMoreThanTwoPatternPropertiesPattern)_nTestControlElement.GetCurrentPattern(TestOfMoreThanTwoPatternPropertiesPattern.Pattern); Assert.AreEqual(TestEnum.EnumValue42, pattern.GetEnum()); }
public void Wpf_StandaloneProperty_RetrievedCorrectly() { TestOfMoreThanTwoPatternPropertiesPattern.Initialize(); var val = _wTestControlElement.GetCurrentPropertyValue(TestOfMoreThanTwoPatternPropertiesPattern.Standalone1Property); Assert.AreEqual(42, val); }
// On Win 8.1 issue was fixed it seems public void Native_TestOfMoreThanTwoPatternProperties() { TestOfMoreThanTwoPatternPropertiesPattern.Initialize(); var pattern = (ITestOfMoreThanTwoPatternPropertiesPattern)_nTestControlElement.GetCurrentPattern(TestOfMoreThanTwoPatternPropertiesPattern.Pattern); Assert.AreEqual(421, pattern.CurrentProperty1); Assert.AreEqual(422, pattern.CurrentProperty2); Assert.AreEqual(423, pattern.CurrentProperty3); }