コード例 #1
0
        public void BehaviorShouldNotBeFrozen_Test00_T196013()
        {
            var behavior = new FakeBehavior();

            Assert.IsFalse(behavior.IsFrozen);
            Assert.IsFalse(behavior.CanFreeze);
        }
コード例 #2
0
        public void TestAssociatedObjectImplementsINotifyPropertyChanged()
        {
            Grid element      = new Grid();
            var  testBehavior = new FakeBehavior();

            element.SetBinding(Grid.TagProperty, new Binding()
            {
                Path = new PropertyPath("AssociatedObject"), Source = testBehavior, Mode = BindingMode.OneWay
            });
            Interaction.GetBehaviors(element).Add(testBehavior);
            Assert.AreSame(element, element.Tag);
        }
 public void SetUp()
 {
     behavior = new FakeBehavior();
     target = new FakeBehavioralViewDataContainer(new[] {behavior});
 }
コード例 #4
0
 public void SetUp()
 {
     report = new DebugReport(null, null);
     inner  = new FakeBehavior();
 }
コード例 #5
0
 public void SetUp()
 {
     behavior = new FakeBehavior();
     target   = new FakeBehavioralViewDataContainer(new[] { behavior });
 }