public TestAutomationDefinition(string testAssembly, string testClass, string testMethod, TestParameterCollection testParameters) : this() { this._testAssembly = testAssembly; this._testClass = testClass; this._testMethod = testMethod; this._testParameters = testParameters; }
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); }
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); }
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); }
public TestAutomationDefinition() : base() { _testParameters = new TestParameterCollection(); }