public void SetUnsetStyleFromResource(bool useCompiledXaml) { var layout = new Issue2659(useCompiledXaml); layout.EnumerateButtons(AssertStyleUnApplied); ((IButtonController)layout.button0).SendClicked(); layout.EnumerateButtons(AssertStyleApplied); ((IButtonController)layout.button1).SendClicked(); layout.EnumerateButtons(AssertStyleUnApplied); }
public void SetUnsetLocalProperties(bool useCompiledXaml) { var layout = new Issue2659(useCompiledXaml); layout.EnumerateButtons(AssertPropertiesUnApplied); ((IButtonController)layout.button2).SendClicked(); layout.EnumerateButtons(AssertPropertiesApplied); ((IButtonController)layout.button3).SendClicked(); layout.EnumerateButtons(AssertPropertiesUnApplied); }