summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/60040-UNI-30498_2.cs
blob: 445a7c97724bb57a16733cc9406927d6e18164c5 (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
class Foo
{
    public static IEnumerable<NPath> RuntimeIncludes { get; }
        = new[]
        {
        new NPath("Projects/PrecompiledHeaders")
        };

    void Foo(string file)
    {
        var type = Path.GetFileNameWithoutExtension(file);
        switch (Path.GetExtension(file))
        {
            case ".cs":
                resource = new Bar(string.Format("test output",
                    type));
                break;
            case ".baz":
                resource = new Baz(type,
                    string.Format(@"test output
with multiple
lines
",
                        type));
                break;
        }
    }
}

public class Bar
{
    private static FooBar Baz { get; }
        = new FooBar()
            .WithPath("foo/bar/baz")
            .WithSource("qux/quux/quuz")
            .WithPrebuiltReference(FooBar.Baz)
            .WithBaz("2")
            .Complete();
}