Example #1
0
 public ResizeSize(string name, ResizeFit fit, double width, double height, ResizeUnit unit)
 {
     Name   = name;
     Fit    = fit;
     Width  = width;
     Height = height;
     Unit   = unit;
 }
        public void HeightNotVisible(ResizeFit fit, ResizeUnit unit)
        {
            var size = new ResizeSize
            {
                Fit  = fit,
                Unit = unit,
            };

            Assert.IsFalse(size.ShowHeight);
        }
Example #3
0
 public ImageSize(int id, string name, ResizeFit fit, double width, double height, ResizeUnit unit)
 {
     Id     = id;
     Name   = name;
     Fit    = (int)fit;
     Width  = width;
     Height = height;
     Unit   = (int)unit;
 }