Exemple #1
0
        public void Should_return_null_if_pixel_infos_not_found()
        {
            var sut = new AssetMetadata();

            Assert.Null(sut.GetPixelWidth());
            Assert.Null(sut.GetPixelHeight());
        }
Exemple #2
0
        public void Should_return_pixel_infos_if_found()
        {
            var sut =
                new AssetMetadata()
                .SetPixelWidth(800)
                .SetPixelHeight(600);

            Assert.Equal(800, sut.GetPixelWidth());
            Assert.Equal(600, sut.GetPixelHeight());
        }