Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Karlaš <david.karlas@xamarin.com>2014-04-30 13:56:50 +0400
committerDavid Karlaš <david.karlas@xamarin.com>2014-04-30 13:56:50 +0400
commit242c141a2a9ffd8181d55a87650c488f3c6f8bb9 (patch)
tree6d50cfd5f08b9a444727ce7666138231f59edd08 /ICSharpCode.NRefactory.Tests
parent9d1cc0939d7a604c0f161696775365c0e89d1942 (diff)
Fixed parser bug when using ParseExpression
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r--ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs
index b163887b..996dbe61 100644
--- a/ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs
+++ b/ICSharpCode.NRefactory.Tests/CSharp/Parser/Bugs/ParserBugTests.cs
@@ -692,15 +692,24 @@ class C
Assert.That(member.Modifiers, Is.EqualTo(Modifiers.Async));
}
-
+
[Test]
public void TestParseTypeReferenceBug()
{
var s = "global::Thing<int>.Done<string>";
var type = new CSharpParser().ParseTypeReference(s);
-
+
Assert.AreEqual(s, type.ToString());
}
+
+ [Test]
+ public void TestParseExpressionBug()
+ {
+ var s = "global::Thing<int>.Done<string>";
+ var expr = new CSharpParser().ParseExpression(s);
+
+ Assert.AreEqual(s, expr.ToString());
+ }
}
}