summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cs/60009-UNI-9917.cs
blob: 5e352d107b8720941c26d974bb1ba3ba1868550f (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
// 1. Formatting the first produces the second.

namespace Unity.IL2CPP.IntegrationTests.ILTests.Tests
{
    public class GlobalsWithBoxOptimizationAndBrTrueOpcodeTest : BoxTestsBase { public GlobalsWithBoxOptimizationAndBrTrueOpcodeTest() : base(OpCodes.Brtrue) {} }
    public class GlobalsWithBoxOptimizationAndBrTrueSOpcodeTest : BoxTestsBase { public GlobalsWithBoxOptimizationAndBrTrueSOpcodeTest() : base(OpCodes.Brtrue_S) {} }
    public class GlobalsWithBoxOptimizationAndBrFalseOpcodeTest : BoxTestsBase { public GlobalsWithBoxOptimizationAndBrFalseOpcodeTest() : base(OpCodes.Brfalse) {} }
    public class GlobalsWithBoxOptimizationAndBrFalseSOpcodeTest : BoxTestsBase { public GlobalsWithBoxOptimizationAndBrFalseSOpcodeTest() : base(OpCodes.Brfalse_S) {} }
}

// 2. And formatting this produces the third.

namespace Unity.IL2CPP.IntegrationTests.ILTests.Tests
{
    public class GlobalsWithBoxOptimizationAndBrTrueOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrTrueOpcodeTest() : base(OpCodes.Brtrue) {}
    }
    public class GlobalsWithBoxOptimizationAndBrTrueSOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrTrueSOpcodeTest() : base(OpCodes.Brtrue_S) {}
    }
    public class GlobalsWithBoxOptimizationAndBrFalseOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrFalseOpcodeTest() : base(OpCodes.Brfalse) {}
    }
    public class GlobalsWithBoxOptimizationAndBrFalseSOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrFalseSOpcodeTest() : base(OpCodes.Brfalse_S) {}
    }
}

// 3. This doesn't changes when formatted.

namespace Unity.IL2CPP.IntegrationTests.ILTests.Tests
{
    public class GlobalsWithBoxOptimizationAndBrTrueOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrTrueOpcodeTest() : base(OpCodes.Brtrue) {}
    }
    public class GlobalsWithBoxOptimizationAndBrTrueSOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrTrueSOpcodeTest() : base(OpCodes.Brtrue_S) {}
    }
    public class GlobalsWithBoxOptimizationAndBrFalseOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrFalseOpcodeTest() : base(OpCodes.Brfalse) {}
    }
    public class GlobalsWithBoxOptimizationAndBrFalseSOpcodeTest : BoxTestsBase
    {
        public GlobalsWithBoxOptimizationAndBrFalseSOpcodeTest() : base(OpCodes.Brfalse_S) {}
    }
}