Ejemplo n.º 1
0
        public void TestGetPictureSmall()
        {
            string pictureUrl = objectWithImage.GetPicture(PictureSize.SMALL);

            Assert.NotNull(pictureUrl);
            Assert.True(pictureUrl.Contains("small"));
            Assert.True(pictureUrl.Contains("picture"));
        }
Ejemplo n.º 2
0
        public void TestGetImageNotNull()
        {
            IObjectWithImage imgObj = JsonConvert.DeserializeObject <ObjectWithImage>(defaultJson);

            Assert.That(imgObj != null);

            Assert.That(string.IsNullOrEmpty(imgObj.GetPicture(PictureSize.Small)) == false);
            Assert.That(string.IsNullOrEmpty(imgObj.GetPicture(PictureSize.Medium)) == false);
            Assert.That(string.IsNullOrEmpty(imgObj.GetPicture(PictureSize.Large)) == false);
            Assert.That(string.IsNullOrEmpty(imgObj.GetPicture(PictureSize.ExtraLarge)) == false);
        }