summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cs/UNI-3484.cs
blob: 1235aa916f540fb08952558d8b3b5880c5ec2d24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// various combos from unity

contents.Append( "#include \"{file.GetBoundPath ()}\"" );
contents.Append( $"#include \"{file.GetBoundPath ()}\"" );
contents.Append( $"#include \"{file.GetBoundPath ("abc def")}\"" );

contents.Append(
    $"#include \"{file.GetBoundPath()}\"");

contents.Append( $@"#include
""{file.GetBoundPath($@"abc 
 def")}""" );

contents.Append(
    $@"#include
""{file.GetBoundPath(@"abc
   def ghi")}""" );

contents. Append( @"#include
""{file.GetBoundPath ()}""" );

// fun with nesting

$@"{$"\\\"abc{$@" \""def\"" {"{ghi}"} {jkl} {{mno}}"}\\\""
}".Dump();
    
$@"{$@"\""abc{$@" def {"{ghi}"}
    {jkl} {{mno}}\"""}"
}".Dump();

// ensure we didn't break @for etc

var @for = @base + @this - $@"{@while}"  ;

// from roslyn's InterpolationTests.cs

Console.WriteLine($"{number}");

Console.WriteLine($"{number}{number}");
Console.WriteLine($"Jenny don\'t change your number { number :###-####} { number :###-####}.");
Console.WriteLine($"jenny { ((Func<int>)(() => { return number; })).Invoke() :(408) ###-####}");
Console.WriteLine( $"{hello}, { world }." );

Console.WriteLine( $@"{
                            hello
                    },
{
                    world }." );

System.Console.Write($"{{ x }}");
var s = $@"{$@""{1}""}";

Console.WriteLine($"{ await hello }, { await world }!");

Console.WriteLine($"X = { 123 , -(3+4) }.");

var s1 = $"X = { 1 } ";