public void TextColorStyler_WithExcludeColor_ReturnsInputText()
        {
            var colorStyler = new TextColorStyler();

            Assert.That(colorStyler.Colorize(Color.Black, "text"), Is.EqualTo("text"));
        }
Esempio n. 2
0
        private string ColorizeTextInCell(Cell cell, string value)
        {
            ColorStyler colorStyler = new TextColorStyler();

            return(colorStyler.Colorize(cell.TextColor, value));
        }
        public void TextColorStyler_WithRgbValues_ReturnsTextColorCommand()
        {
            var colorStyler = new TextColorStyler();

            Assert.That(colorStyler.Colorize(Color.Red, "text"), Is.EqualTo(@"\textcolor[rgb]{1,0,0}{text}"));
        }