Пример #1
0
        public void Test_AddImage_AddsTheSpecifiedImage_WhenTheSpecifiedFileExists()
        {
            Assert.Equal(0, _documentation.Images.Count);
            _template.AddImage(new FileInfo("Documentation" + Path.DirectorySeparatorChar + "image.png"));
            Assert.Equal(1, _documentation.Images.Count);

            Image png = _documentation.Images.Where(i => i.Name.Equals("image.png")).First();

            Assert.Equal("image/png", png.Type);
            Assert.Equal(PngAsBase64, png.Content);
        }