public void RegisterDefaultBindableCommandProperties()
        {
            var v = new CustomViewWithCommand();

            Assert.Throws <ArgumentException>(() => DefaultBindableProperties.GetForCommand(v));

            DefaultBindableProperties.RegisterForCommand((CustomViewWithCommand.CommandProperty, CustomViewWithCommand.CommandParameterProperty));
        }
        public override void TearDown()
        {
            if (DefaultBindableProperties.GetFor(typeof(CustomViewWithText)) != null)
            {
                DefaultBindableProperties.Unregister(CustomViewWithText.TextProperty);
            }

            if (DefaultBindableProperties.GetForCommand(typeof(CustomViewWithCommand)) != (null, null))
            {
                DefaultBindableProperties.UnregisterForCommand(CustomViewWithCommand.CommandProperty);
            }
            base.TearDown();
        }
        public void RegisterDefaultBindableCommandProperties()
        {
            var v = new CustomViewWithCommand();

            Assert.Throws <ArgumentException>(() => DefaultBindableProperties.GetForCommand(v));

            AssertExperimental(() => DefaultBindableProperties.RegisterForCommand((CustomViewWithCommand.CommandProperty, CustomViewWithCommand.CommandParameterProperty)));

            if (withExperimentalFlag)
            {
                Assert.That(DefaultBindableProperties.GetForCommand(v), Is.EqualTo((CustomViewWithCommand.CommandProperty, CustomViewWithCommand.CommandParameterProperty)));
            }
        }
 public void GetDefaultBindableCommandPropertiesForBuiltInType()
 => Assert.That(DefaultBindableProperties.GetForCommand(new Button()), Is.Not.Null);