summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cs/10078-UNI-3484.cs
blob: d7e4f26aa0ed370c9f0a8ef72b9f2a2bda023e21 (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 } ";