Example #1
0
        public void When_Attached_Property_And_Local_Resource()
        {
            var control = new Test_Control();

            var bulbousness = MyBehavior.GetBulbousness(control.TestBorder);

            Assert.AreEqual(105.5, bulbousness);
        }
Example #2
0
        public void When_Attached_Property_And_Top_Level()
        {
            var page = new Test_Page();

            var bulbousness = MyBehavior.GetBulbousness(page);

            Assert.AreEqual(256, bulbousness);
        }
Example #3
0
        public void When_Attached_Property_And_App_Resource()
        {
            var control = new Test_Control();

            var bulbousness = MyBehavior.GetBulbousness(control.TestTextBlock);

            Assert.AreEqual(256, bulbousness);
        }