예제 #1
0
        public void NormalizesThumbnailSize()
        {
            PhotoSizeBase size = new PhotoSizeFactory().Create(PhotoSize.Thumbnail);

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

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

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