Hi Team,
I'm trying to write unit test case for automation script using MS test framework.
I'm unable to override the members provided by the Skyline.DataMiner.Utils.InteractiveAutomationScript to setup test cases.
There are members and method like this which unable to override or setup test data. Is there a way to resolve this
Hello,
Perhaps you can try mocking the first-level property, TruckNameTextBox, and assign it a concrete value of the TextBox object instance.
It would look something like:
_mockDialog.Setup(d => d.TruckNameTextBox).Returns(new TextBox { Text = string.Empty", ...});
You tried to mock Text property within TruckNameTextBox, which initially wasn't mocked, causing and exception