Exemple #1
0
 public void EmptyBraceFormatting(EmptyBraceFormatting emptyBraceFormatting, string expected)
 {
     Test(
         expected,
         Syntax.MethodDeclaration(
             Syntax.ParseName("void"),
             "Method",
             Syntax.ParameterList(),
             Syntax.Block()
             ),
         p => p.BracesLayout.EmptyBraceFormatting = emptyBraceFormatting
         );
 }
 public void EmptyBraceFormatting(EmptyBraceFormatting emptyBraceFormatting, string expected)
 {
     Test(
         expected,
         Syntax.MethodDeclaration(
             Syntax.ParseName("void"),
             "Method",
             Syntax.ParameterList(),
             Syntax.Block()
         ),
         p => p.BracesLayout.EmptyBraceFormatting = emptyBraceFormatting
     );
 }