Esempio n. 1
0
        public TestAutomationDefinition(TestAutomationDefinition originalTestAutomationDefinition)
            : this()
        {
            this._testAssembly = TestUtils.SafeCopyString(originalTestAutomationDefinition._testAssembly);
            this._testClass    = TestUtils.SafeCopyString(originalTestAutomationDefinition._testClass);
            this._testMethod   = TestUtils.SafeCopyString(originalTestAutomationDefinition._testMethod);

            foreach (TestParameter parameter in originalTestAutomationDefinition._testParameters)
            {
                _testParameters.Add(new TestParameter(parameter));
            }
        }
Esempio n. 2
0
        internal static TestParameterCollection ReadParameters(XPathNavigator navigator)
        {
            var testParameters = new TestParameterCollection();

            XPathNodeIterator iterator = navigator.Select("TestParameters/TestParameter");

            while (iterator.MoveNext())
            {
                testParameters.Add(TestParameter.ReadTestParameter(iterator.Current));
            }

            return(testParameters);
        }