예제 #1
0
 public TestAutomationDefinition(string testAssembly, string testClass, string testMethod, TestParameterCollection testParameters)
     : this()
 {
     this._testAssembly   = testAssembly;
     this._testClass      = testClass;
     this._testMethod     = testMethod;
     this._testParameters = testParameters;
 }
예제 #2
0
        public TestAutomationDefinition(XPathNavigator navigator)
        {
            var testAssembly = TestUtils.GetXPathValue(navigator, "TestAssembly");

            _testAssembly   = TestProperties.FixupString(testAssembly, "TestAssemblies", "TestHome");
            _testClass      = TestUtils.GetXPathValue(navigator, "TestClass");
            _testMethod     = TestUtils.GetXPathValue(navigator, "TestMethod");
            _testParameters = TestParameterCollection.ReadParameters(navigator);
        }
예제 #3
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);
        }
예제 #4
0
        private bool areParamsEqual(TestParameterCollection testParameters1, TestParameterCollection testParameters2)
        {
            bool equal = true;

            if (testParameters1.Count == testParameters2.Count)
            {
                for (int i = 0; i < testParameters1.Count; i++)
                {
                    if (!testParameters1[i].Equals(testParameters2[i]))
                    {
                        equal = false;
                        break;
                    }
                }
            }
            else
            {
                equal = false;
            }


            return(equal);
        }
예제 #5
0
 public TestAutomationDefinition()
     : base()
 {
     _testParameters = new TestParameterCollection();
 }