示例#1
0
        public void Wpf_NullStringStandaloneProperty_RetrievedAsEmptyString()
        {
            TestOfMoreThanTwoPatternPropertiesPattern.Initialize();
            var val = (string)_wTestControlElement.GetCurrentPropertyValue(TestOfMoreThanTwoPatternPropertiesPattern.NullStringStandaloneProperty);

            Assert.IsEmpty(val);
        }
示例#2
0
        public void Native_EnumTypedProperty_RetrievedCorrectly()
        {
            TestOfMoreThanTwoPatternPropertiesPattern.Initialize();
            var pattern = (ITestOfMoreThanTwoPatternPropertiesPattern)_nTestControlElement.GetCurrentPattern(TestOfMoreThanTwoPatternPropertiesPattern.Pattern);

            Assert.AreEqual(TestEnum.EnumValue42, pattern.GetEnum());
        }
示例#3
0
        public void Wpf_StandaloneProperty_RetrievedCorrectly()
        {
            TestOfMoreThanTwoPatternPropertiesPattern.Initialize();
            var val = _wTestControlElement.GetCurrentPropertyValue(TestOfMoreThanTwoPatternPropertiesPattern.Standalone1Property);

            Assert.AreEqual(42, val);
        }
示例#4
0
        // 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);
        }