public void SetChar()
        {
            const ConCharAttributes attribute = (ConCharAttributes)0xCCCC;
            CHAR_INFO source = new CHAR_INFO(' ', attribute);
            var       result = source.SetChar('x');

            result.Char.Should().Be('x');
            result.Attributes.Should().Be(attribute);
        }
        public void Setforeground()
        {
            const ConCharAttributes attribute = (ConCharAttributes)0xCCCC;
            const ConCharAttributes expected  = (ConCharAttributes)0xCCC0 | ConCharAttributes.ForeGroundGreen | ConCharAttributes.ForeGroundIntensity;
            CHAR_INFO source = new CHAR_INFO('x', attribute);
            var       result = source.SetForeground(ConsoleColor.Green);

            result.Char.Should().Be('x');
            result.Attributes.Should().Be(expected);
        }