public void Should_WriteSample_String_Values()
        {
            // Given
            var builder = new StringBuilder();

            // When
            using (var writer = new StringWriter(builder))
            {
                ConfigSerializer.WriteSample(writer);
            }

            var text = builder.ToString();

            // Then
            Assert.That(text, Contains.Substring("#  footer-heading: Where to get it"));
        }
        public void Should_WriteSample_Boolean_Values()
        {
            // Given
            var builder = new StringBuilder();

            // When
            using (var writer = new StringWriter(builder))
            {
                ConfigSerializer.WriteSample(writer);
            }

            var text = builder.ToString();

            // Then
            Assert.That(text, Contains.Substring("#  include-footer: true"));
        }
        public void Should_WriteSample_Keys_Without_Values()
        {
            // Given
            var builder = new StringBuilder();

            // When
            using (var writer = new StringWriter(builder))
            {
                ConfigSerializer.WriteSample(writer);
            }

            var text = builder.ToString();

            // Then
            Assert.That(text, Contains.Substring("#create:" + Environment.NewLine));
            Assert.That(text, Contains.Substring("#export:" + Environment.NewLine));
        }
        public void Should_WriteSample_Multiline_String_Values()
        {
            // Given
            var builder = new StringBuilder();

            // When
            using (var writer = new StringWriter(builder))
            {
                ConfigSerializer.WriteSample(writer);
            }

            var text = builder.ToString();

            // Then
            var expectedText = string.Format("#  footer-content: >-{0}#    You can download this release from{0}#{0}#    [chocolatey](https://chocolatey.org/packages/chocolateyGUI/{{milestone}})", Environment.NewLine);

            Assert.That(text, Contains.Substring(expectedText));
        }