diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2014-08-27 14:18:47 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2014-08-27 14:18:47 +0400 |
commit | 13da5ab4eccaae1589cac029d2b06adc75ae53ce (patch) | |
tree | 125729a5861825ff20059544a35b37b30e48faba /ICSharpCode.NRefactory.Tests | |
parent | db6f8a467f9d5ec4f5eefc6a2c6d38a2d4c17608 (diff) |
Fixed semantic highlighting issue.
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r-- | ICSharpCode.NRefactory.Tests/CSharp/Analysis/SemanticHighlightingTests.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory.Tests/CSharp/Analysis/SemanticHighlightingTests.cs b/ICSharpCode.NRefactory.Tests/CSharp/Analysis/SemanticHighlightingTests.cs index d833dd2f..12070119 100644 --- a/ICSharpCode.NRefactory.Tests/CSharp/Analysis/SemanticHighlightingTests.cs +++ b/ICSharpCode.NRefactory.Tests/CSharp/Analysis/SemanticHighlightingTests.cs @@ -77,7 +77,7 @@ namespace ICSharpCode.NRefactory.CSharp.Analysis public string GetColor(TextLocation loc) { foreach (var color in colors) { - if (color.Item1.IsInside (loc)) + if (color.Item1.Contains (loc)) return color.Item2; } return null; @@ -483,6 +483,22 @@ class X } }", defaultTextColor); } + + [Test] + public void TestStringFormatClosingBrace() + { + TestColor (@" +using System.Text; + +class TestClass +{ + void Foo(StringBuilder sb) + { + sb.AppendFormat(""{0$}"", 1, 2); + } +}", stringFormatItemColor); + } + } } |