private TestByCommandParameterExtensions ( ) : void | ||
Résultat | void |
public void TestByCommandParameterExtensions()
{
var buttons = ((AppVar)_ctrl).LogicalTree().ByType<Button>();
AppVar button1 = buttons.ByCommandParameter("button1").Single();
Assert.AreEqual(button1, _ctrl._button1);
button1 = buttons.ByCommandParameter(new ExplicitAppVar(_app.Copy("button1"))).Single();
Assert.AreEqual(button1, _ctrl._button1);
}