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:
authorMike Krüger <mkrueger@xamarin.com>2014-08-27 14:18:47 +0400
committerMike Krüger <mkrueger@xamarin.com>2014-08-27 14:18:47 +0400
commit13da5ab4eccaae1589cac029d2b06adc75ae53ce (patch)
tree125729a5861825ff20059544a35b37b30e48faba /ICSharpCode.NRefactory.Tests
parentdb6f8a467f9d5ec4f5eefc6a2c6d38a2d4c17608 (diff)
Fixed semantic highlighting issue.
Diffstat (limited to 'ICSharpCode.NRefactory.Tests')
-rw-r--r--ICSharpCode.NRefactory.Tests/CSharp/Analysis/SemanticHighlightingTests.cs18
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);
+ }
+
}
}