Example #1
0
        public void Write_WithMultilineComment_WritesObjectCorrectly()
        {
            // Arrange
            var tc = new WithMultilineComment();

            // Act
            var s = Toml.WriteString(tc);

            // Assert
            s.Should().Be("#This is a\r\n# multiline comment\r\nCommentedA = 0\r\n#This is a \n#multiline comment\r\nCommentedB = 0\r\n");
        }
Example #2
0
        public void Write_WithMultilineComment_WritesObjectCorrectly()
        {
            // Arrange
            var tc = new WithMultilineComment();

            // Act
            var s = Toml.WriteString(tc);

            // Assert
            s.Should().Be("#This is a\r\n# multiline comment\r\nCommentedA = 0\r\n#This is a \n#multiline comment\r\nCommentedB = 0\r\n");
        }