public void TestMethod1()
        {
            var behavior = new UpdateTextBindingOnPropertyChanged();

            var bindingSource = new BindingSource()
            {
                Value = "InitialValue"
            };
            var binding = new Binding("Value")
            {
                Source = bindingSource, Mode = BindingMode.TwoWay, UpdateSourceTrigger = UpdateSourceTrigger.Explicit
            };

            var textBox = new TextBox();

            base.TestPanel.Children.Add(textBox);

            EnqueueCallback(() =>
            {
                textBox.SetBinding(TextBox.TextProperty, binding);
                System.Windows.Interactivity.Interaction.GetBehaviors(textBox).Add(behavior);

                textBox.Text = "NewValue";
            });

            EnqueueCallback(() => Assert.AreEqual("NewValue", bindingSource.Value));
            EnqueueTestComplete();
        }
        public void TestMethod1()
        {
            var behavior = new UpdateTextBindingOnPropertyChanged();

            var bindingSource = new BindingSource() { Value = "InitialValue" };
            var binding = new Binding("Value") { Source = bindingSource, Mode = BindingMode.TwoWay, UpdateSourceTrigger = UpdateSourceTrigger.Explicit };

            var textBox = new TextBox();
            base.TestPanel.Children.Add(textBox);

            EnqueueCallback(() =>
                                {
                                    textBox.SetBinding(TextBox.TextProperty, binding);
                                    System.Windows.Interactivity.Interaction.GetBehaviors(textBox).Add(behavior);

                                    textBox.Text = "NewValue";
                                });

            EnqueueCallback(() => Assert.AreEqual("NewValue", bindingSource.Value));
            EnqueueTestComplete();
        }