Example #1
0
        public void TriggerAssociatedObjectAccessorTest()
        {
            Button            button            = new Button();
            StubButtonTrigger stubButtonTrigger = new StubButtonTrigger();

            stubButtonTrigger.Attach(button);
            Assert.AreEqual(stubButtonTrigger.AttachedButton, button, "trigger.AssociatedObject == button");
        }
Example #2
0
        public void CreateInstanceCoreTest()
        {
            StubButtonTrigger stubButtonTrigger = new StubButtonTrigger();

            Assert.IsTrue(stubButtonTrigger.CreateInstaceCoreStub().GetType().Equals(typeof(StubButtonTrigger)), "TriggerBase.CreateInstanceCore works.");
        }
Example #3
0
        public void ConstrainedTriggerTest()
        {
            StubButtonTrigger stubButtonTrigger = new StubButtonTrigger();

            BehaviorTestUtilities.TestConstraintOnAssociatedObject <Button>(stubButtonTrigger);
        }