public void Can_create_modify_and_readonly_format_info()
        {
            var info = new ConsoleFormatInfo();

            info.IsReadOnly.Should().BeFalse();

            info.SupportsAnsiCodes = true;
            info.SupportsAnsiCodes.Should().BeTrue();

            var readonlyInfo = ConsoleFormatInfo.ReadOnly(info);

            readonlyInfo.IsReadOnly.Should().BeTrue();

            Assert.Throws <InvalidOperationException>(() => readonlyInfo.SupportsAnsiCodes = false);
        }
 public void ReadOnly_throws_argnull()
 {
     Assert.Throws <ArgumentNullException>(() => ConsoleFormatInfo.ReadOnly(null));
 }