public void SetColor_DefineColor_DrawWithDefinedColor()
        {
            // Arrange
            int lineColorIndex = 2;

            _lastWritedStrings.Clear();
            var modernGrapicsObjectAdapter = new ModernGrapicsObjectAdapter(_modernGraphicsRendererMock.Object);

            // Act
            modernGrapicsObjectAdapter.BeginDraw();
            modernGrapicsObjectAdapter.SetColor(0xAAEEFF);
            modernGrapicsObjectAdapter.MoveTo(1, 1);
            modernGrapicsObjectAdapter.LineTo(2, 2);
            modernGrapicsObjectAdapter.EndDraw();

            // Assert
            Assert.Equal(expected: 5, _lastWritedStrings.Count);
            Assert.Equal(
                expected: "  <color r=\"0,67\" g=\"0,93\" b=\"1\" a=\"1\" />",
                _lastWritedStrings[lineColorIndex]
                );
        }
        public void LineTo_StartPositionDefined_DrawFromStartPositionToNewPosition()
        {
            // Arrange
            int lineTagBeginingIndex = 1;
            int lineTagEndingIndex   = 3;

            _lastWritedStrings.Clear();
            var modernGrapicsObjectAdapter = new ModernGrapicsObjectAdapter(_modernGraphicsRendererMock.Object);

            // Act
            modernGrapicsObjectAdapter.BeginDraw();
            modernGrapicsObjectAdapter.MoveTo(1, 1);
            modernGrapicsObjectAdapter.LineTo(2, 2);
            modernGrapicsObjectAdapter.EndDraw();

            // Assert
            Assert.Equal(expected: 5, _lastWritedStrings.Count);
            Assert.Equal(
                expected: "<line fromX=1 fromY=1 toX=2 toY=2>",
                _lastWritedStrings[lineTagBeginingIndex]
                );
            Assert.Equal(expected: "</line>", _lastWritedStrings[lineTagEndingIndex]);
        }