コード例 #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();
 }