public void TriggerAssociatedObjectAccessorTest() { Button button = new Button(); StubButtonTrigger stubButtonTrigger = new StubButtonTrigger(); stubButtonTrigger.Attach(button); Assert.AreEqual(stubButtonTrigger.AttachedButton, button, "trigger.AssociatedObject == button"); }
public void CreateInstanceCoreTest() { StubButtonTrigger stubButtonTrigger = new StubButtonTrigger(); Assert.IsTrue(stubButtonTrigger.CreateInstaceCoreStub().GetType().Equals(typeof(StubButtonTrigger)), "TriggerBase.CreateInstanceCore works."); }
public void ConstrainedTriggerTest() { StubButtonTrigger stubButtonTrigger = new StubButtonTrigger(); BehaviorTestUtilities.TestConstraintOnAssociatedObject <Button>(stubButtonTrigger); }