From 348e10fc94a126273f3c2137e3f3561ff04e8b6c Mon Sep 17 00:00:00 2001 From: tbolon Date: Fri, 26 Nov 2010 14:43:51 +0100 Subject: [PATCH] adding a failing test where when cref reference a property of the type himself --- src/Docu.Tests/Parsing/CommentParserTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Docu.Tests/Parsing/CommentParserTests.cs b/src/Docu.Tests/Parsing/CommentParserTests.cs index a2cab92..127b3c4 100644 --- a/src/Docu.Tests/Parsing/CommentParserTests.cs +++ b/src/Docu.Tests/Parsing/CommentParserTests.cs @@ -127,6 +127,17 @@ public void ShouldParseSeeForProperty() ((See)blocks[0]).Reference.Name.ShouldEqual("SecondProperty"); } + [Test] + public void ShouldParseSeeForRelativeProperty() + { + var blocks = parser.ParseNode("".ToNode()); + + blocks.Count.ShouldEqual(1); + blocks[0].ShouldBeOfType(); + ((See)blocks[0]).Reference.IsResolved.ShouldBeFalse(); + ((See)blocks[0]).Reference.Name.ShouldEqual("OtherProperty"); + } + [Test] public void ShouldParseSeeForEvent() {