summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/input/cs/UNI-30498_2.cs
blob: ba0d8515ecba7796b720af39a9cecf486f0efdd4 (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();
}