public void TestSetMaxLengthWithInvalidControlType()
        {
            var invalidEditor = new RichTextBox();
            StringLengthTestClass testObject = new StringLengthTestClass();
            Binding myBinding = new Binding("StringLengthProperty");
            myBinding.Source = testObject;

            invalidEditor.SetBinding(TextBox.TextProperty, myBinding);
            Assert.Throws<ArgumentException>(() => AttributePropertySetter.SetAttributeProperty(invalidEditor));
        }