/// <summary> /// Initializes a new instance of the <see cref="TestBase" /> class. /// </summary> /// <param name="item">The item.</param> public TestBase(InheritedClass item) : base(typeof(InheritedClass), item) { }
public void TestSetPropertySetsPropertyValue() { var page = new InheritedClass(); var target = new TestBase(page); IPropertyData data; var result = target.TryGetProperty("Name", out data); Assert.AreEqual(true, result); // Set the property value via the action data.FillData("Dan"); Assert.AreEqual("Dan", page.Name); }
public void TestWaitForPageToBeActiveCallsNativeInterfaceNoActionIfMissing() { var targetClass = new InheritedClass(); var target = new TestBase(targetClass); target.WaitForPageToBeActive(); }
public void TestCallElementInvoker() { var page = new InheritedClass { Button = new BaseElement() }; var target = new TestBase(page); IPropertyData property; var result = target.TryGetProperty("Button", out property); property.ClickElement(); Assert.IsTrue(result); }