Esempio n. 1
0
        public void BehaviorShouldNotBeFrozen_Test00_T196013()
        {
            var behavior = new FakeBehavior();

            Assert.IsFalse(behavior.IsFrozen);
            Assert.IsFalse(behavior.CanFreeze);
        }
Esempio n. 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});
 }
Esempio n. 4
0
 public void SetUp()
 {
     report = new DebugReport(null, null);
     inner  = new FakeBehavior();
 }
 public void SetUp()
 {
     behavior = new FakeBehavior();
     target   = new FakeBehavioralViewDataContainer(new[] { behavior });
 }