public override void GetAutomationControlType () { ButtonAutomationPeerPoker bapp = new ButtonAutomationPeerPoker (new Button ()); Assert.AreEqual (AutomationControlType.Button, bapp.GetAutomationControlType (), "GetAutomationControlType"); Assert.AreEqual (AutomationControlType.Button, bapp.GetAutomationControlTypeCore_ (), "GetAutomationControlTypeCore"); }
public override void GetPattern () { ButtonAutomationPeerPoker bap = new ButtonAutomationPeerPoker (new Button ()); Assert.IsNull (bap.GetPattern (PatternInterface.Dock), "Dock"); Assert.IsNull (bap.GetPattern (PatternInterface.ExpandCollapse), "ExpandCollapse"); Assert.IsNull (bap.GetPattern (PatternInterface.Grid), "Grid"); Assert.IsNull (bap.GetPattern (PatternInterface.GridItem), "GridItem"); Assert.IsNull (bap.GetPattern (PatternInterface.MultipleView), "MultipleView"); Assert.IsNull (bap.GetPattern (PatternInterface.RangeValue), "RangeValue"); Assert.IsNull (bap.GetPattern (PatternInterface.Scroll), "Scroll"); Assert.IsNull (bap.GetPattern (PatternInterface.ScrollItem), "ScrollItem"); Assert.IsNull (bap.GetPattern (PatternInterface.Selection), "Selection"); Assert.IsNull (bap.GetPattern (PatternInterface.SelectionItem), "SelectionItem"); Assert.IsNull (bap.GetPattern (PatternInterface.Table), "Table"); Assert.IsNull (bap.GetPattern (PatternInterface.TableItem), "TableItem"); Assert.IsNull (bap.GetPattern (PatternInterface.Toggle), "Toggle"); Assert.IsNull (bap.GetPattern (PatternInterface.Transform), "Transform"); Assert.IsNull (bap.GetPattern (PatternInterface.Value), "Value"); Assert.IsNull (bap.GetPattern (PatternInterface.Window), "Window"); Assert.IsNotNull (bap.GetPattern (PatternInterface.Invoke), "Invoke"); }