summaryrefslogtreecommitdiff
path: root/tests/examplefiles/test.cs
diff options
context:
space:
mode:
authoralbertjan <albertjan@curit.com>2012-01-31 10:20:46 +0100
committeralbertjan <albertjan@curit.com>2012-01-31 10:20:46 +0100
commitd1d4877628fa06d7c9e0af9d411e0d301b808374 (patch)
treec3f26b49a9d9b675d60989f038eb036cd945983e /tests/examplefiles/test.cs
parent366838d840e4bad66e35fd7c101fdf4e6c13a1e8 (diff)
downloadpygments-d1d4877628fa06d7c9e0af9d411e0d301b808374.tar.gz
C# examplefile showing broken verbatim-string-literal rendering and a
couple missing keywords introduced in .net3.5 and .net4.
Diffstat (limited to 'tests/examplefiles/test.cs')
-rw-r--r--tests/examplefiles/test.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/examplefiles/test.cs b/tests/examplefiles/test.cs
index ffa9bfea..faab7e42 100644
--- a/tests/examplefiles/test.cs
+++ b/tests/examplefiles/test.cs
@@ -153,6 +153,29 @@ namespace Diva.Core {
public OpenerTask (string fileName)
{
this.fileName = fileName;
+ var verbatimString = @"c:\test\";
+
+ var verbatimStringWithNewline = @"test \\ \n \t \r
+a
+b
+c";
+ var verbatimStringWithEscapedQuotes = @"He said
+""she says \"" is not an escaped character in verbatimstrings""
+";
+
+ int[] numbers = { 5,6,4,2,4,6,8,9,7,0 };
+ var linqExample = from n in numbers
+ where n > 5
+ select n;
+
+ var anotherlinqExample = from n in numbers
+ orderby n descending
+ select n;
+
+ int[] someMoreNumbers = { 8,2,17,34,8,9,9,5,3,4,2,1,5 };
+ var moreLinq = from n in numbers
+ join mn in moreNumbers on n equals mn + 2
+ select new {n, mn};
}
public override void Reset ()