public void WriteBlock_WritesBlock(FlexiPictureBlock dummyFlexiPictureBlock,
                                           string expectedResult)
        {
            // Arrange
            var dummyStringWriter = new StringWriter();
            var dummyHtmlRenderer = new HtmlRenderer(dummyStringWriter);
            ExposedFlexiPictureBlockRenderer testSubject = CreateExposedFlexiPictureBlockRenderer();

            // Act
            testSubject.ExposedWriteBlock(dummyHtmlRenderer, dummyFlexiPictureBlock);
            string result = dummyStringWriter.ToString();

            // Assert
            Assert.Equal(expectedResult, result, ignoreLineEndingDifferences: true);
        }
        public void WriteBlock_OnlyWritesAltIfEnableHtmlForBlockIsFalse()
        {
            // Arrange
            const string      dummyAlt = "dummyAlt";
            FlexiPictureBlock dummyFlexiPictureBlock = CreateFlexiPictureBlock(alt: dummyAlt);
            var dummyStringWriter = new StringWriter();
            var dummyHtmlRenderer = new HtmlRenderer(dummyStringWriter)
            {
                EnableHtmlForBlock = false
            };
            ExposedFlexiPictureBlockRenderer testSubject = CreateExposedFlexiPictureBlockRenderer();

            // Act
            testSubject.ExposedWriteBlock(dummyHtmlRenderer, dummyFlexiPictureBlock);
            string result = dummyStringWriter.ToString();

            // Assert
            Assert.Equal($"{dummyAlt}\n", result, ignoreLineEndingDifferences: true);
        }