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); }
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); }