예제 #1
0
        public void SGRInverse(string data, ConsoleBuffer.Commands.SetGraphicsRendition.FlagValue expectedValue)
        {
            var parser = this.EnsureCommandParses($"\x1b[{data}m");
            var cmd    = parser.Command as ConsoleBuffer.Commands.SetGraphicsRendition;

            Assert.IsNotNull(cmd);
            Assert.AreEqual(expectedValue, cmd.Inverse);
        }
예제 #2
0
        public void SGRBold(string data, ConsoleBuffer.Commands.SetGraphicsRendition.FlagValue expectedValue)
        {
            var parser = this.EnsureCommandParses($"\x1b[{data}m");
            var cmd    = parser.Command as ConsoleBuffer.Commands.SetGraphicsRendition;

            Assert.NotNull(cmd);
            Assert.Equal(expectedValue, cmd.ForegroundBright);
        }