public void TestByCommand()
{
var buttons = TreeUtility.LogicalTree((AppVar)_ctrl).ByType<Button>();
AppVar button2 = ButtonSearcher.ByCommand(buttons, ApplicationCommands.Close).Single();
Assert.AreEqual(button2, _ctrl._button2);
button2 = ButtonSearcher.ByCommand(buttons, typeof(ApplicationCommands).FullName, "Close").Single();
Assert.AreEqual(button2, _ctrl._button2);
}