public void TestByCommandParameterText() { var buttons = TreeUtility.LogicalTree((AppVar)_ctrl).ByType<Button>(); AppVar button4 = ButtonSearcher.ByCommandParameterText(buttons, "A").Single(); Assert.AreEqual(button4, _ctrl._button4); }