public void TestParsingString(string value, int expectedWidth, int expectedHeight)
        {
            var bindable = new BindableSize();

            bindable.Parse(value);

            Assert.AreEqual(new Size(expectedWidth, expectedHeight), bindable.Value);
        }
        public void TestParsingSize(int width, int height)
        {
            var value = new Size(width, height);

            var bindable = new BindableSize();

            bindable.Parse(value);

            Assert.AreEqual(value, bindable.Value);
        }
        public void TestParsingStringWithRange(string value,
                                               int minValueWidth, int minValueHeight,
                                               int maxValueWidth, int maxValueHeight,
                                               int expectedWidth, int expectedHeight
                                               )
        {
            var minValue = new Size(minValueWidth, minValueHeight);
            var maxValue = new Size(maxValueWidth, maxValueHeight);
            var expected = new Size(expectedWidth, expectedHeight);

            var bindable = new BindableSize {
                MinValue = minValue, MaxValue = maxValue
            };

            bindable.Parse(value);

            Assert.AreEqual(expected, bindable.Value);
        }