From 03d942bb95cf1064488ba2c14d9455c19f9c922e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 14 Jan 2015 20:02:02 +0100 Subject: show signatures for accessors --- test/src/format/MarkdownFormatTest.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/src/format') diff --git a/test/src/format/MarkdownFormatTest.kt b/test/src/format/MarkdownFormatTest.kt index 580acd7c..180aceae 100644 --- a/test/src/format/MarkdownFormatTest.kt +++ b/test/src/format/MarkdownFormatTest.kt @@ -69,4 +69,15 @@ public class MarkdownFormatTest { } } + + 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])) + } + } } -- cgit