Beispiel #1
0
        private static void InternalAssertContent(AutomationElement aeControl, string nameValue, string message)
        {
            //find text block using AutomationElement of window
            string            actualValue;
            string            expectedValue;
            ResXConfigHandler resx = new ResXConfigHandler(ConfigHandler.GetValue("TestDataInputFile"));

            actualValue   = aeControl.Current.Name;
            expectedValue = resx.GetValue(nameValue);
            Assert.AreEqual(actualValue, expectedValue, true, message);
        }
Beispiel #2
0
        public static string GetControlId(string key)
        {
            ResXConfigHandler testInputHandler = new ResXConfigHandler(ConfigHandler.GetValue("ControlIdentifiersFile"));

            return(testInputHandler.GetValue(key));
        }
Beispiel #3
0
        public static string GetTestInputData(string key)
        {
            ResXConfigHandler testInputHandler = new ResXConfigHandler(ConfigHandler.GetValue("TestDataInputFile"));

            return(testInputHandler.GetValue(key));
        }