diff options
Diffstat (limited to 'test/src/format')
-rw-r--r-- | test/src/format/MarkdownFormatTest.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index 5a4bacb2..efde3139 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -81,4 +81,15 @@ public class MarkdownFormatTest { markdownService.appendNodes(tempLocation, output, model.members.single().members) } } + + Test fun accessor() { + verifyOutput("test/data/format/accessor.kt", ".get.md") { model, output -> + val propertyNode = model.members.single().members.first { it.name == "C" }.members.first { it.name == "x" } + markdownService.appendNodes(tempLocation, output, listOf(propertyNode.members[0])) + } + verifyOutput("test/data/format/accessor.kt", ".set.md") { model, output -> + val propertyNode = model.members.single().members.first { it.name == "C" }.members.first { it.name == "x" } + markdownService.appendNodes(tempLocation, output, listOf(propertyNode.members[1])) + } + } } |