public void TestCropRegex()
        {
            const string Querystring = "crop=0,0,150,300";
            CropLayer expected = new CropLayer(0, 0, 150, 300, CropMode.Pixels);

            Crop crop = new Crop();
            crop.MatchRegexIndex(Querystring);

            CropLayer actual = crop.DynamicParameter;
            Assert.AreEqual(expected, actual);
        }
        public void TestCropRegex()
        {
            const string Querystring = "crop=0-0-150-300";
            Rectangle expected = new Rectangle(0, 0, 150, 300);

            Crop crop = new Crop();
            crop.MatchRegexIndex(Querystring);

            Rectangle actual = crop.DynamicParameter;

            Assert.AreEqual(expected, actual);
        }