我已经为Coded UI
开发了Custom Control
支持,并且我比较了以下的断言属性值,
Assert.AreEqual(this.AssertMethod2ExpectedValues.UIZoomResetCustomToolBarIconMargin,
uIZoomResetCustom.ToolBarIconMargin, "Toolbar margin failed");
但uIZoomResetCustom.ToolBarIconMargin
始终返回null
。如何解决此问题。感谢
答案 0 :(得分:1)
Did you try to debug the tests and/or highlight the toolbar before reaching the assertion? It is quite clear that framework is unable to find the toolbar. Maybe you need to tweak the search properties.