public void ReadNewLinesAndOmittedSections_OK()
        {
            var expected = Examples.CreateNewLinesAndOmittedSections();

            var actual = new AdrEntryReader(new StringReader(Examples.NewLinesAndOmittedSectionsMarkdown)).Read();

            AssertEntries(expected, actual);
        }
Example #2
0
        public void WriteNewLinesAndOmittedSections_OK()
        {
            var entry = Examples.CreateNewLinesAndOmittedSections();

            // act
            var actual = new StringWriter();

            new AdrEntryWriter(actual).Write(entry);

            // assert
            Assert.Equal(Examples.NewLinesAndOmittedSectionsMarkdown, actual.ToString());
        }