Ejemplo n.º 1
0
        public void NormalizesThumbnailSize()
        {
            PhotoSizeBase size = new PhotoSizeFactory().Create(PhotoSize.Thumbnail);

            Assert.IsTrue("Thumbnail.jpg".GetPhoto().CompareByContent(size.Normalize("Original.jpg".GetPhoto())));
        }
Ejemplo n.º 2
0
        public void NormalizesMiniMapSquareSize()
        {
            PhotoSizeBase size = new PhotoSizeFactory().Create(PhotoSize.MiniMapSquare);

            Assert.IsTrue("MiniMapSquare.jpg".GetPhoto().CompareByContent(size.Normalize("Original.jpg".GetPhoto())));
        }
Ejemplo n.º 3
0
        public void NormalizesMediumSize()
        {
            PhotoSizeBase size = new PhotoSizeFactory().Create(PhotoSize.Medium);

            Assert.IsTrue("Medium.jpg".GetPhoto().CompareByContent(size.Normalize("Original.jpg".GetPhoto())));
        }