|
|
|
@ -34,11 +34,10 @@ namespace ICSharpCode.NRefactory.CSharp.FormattingTests |
|
|
|
public class TestKeepReformattingRules : TestBase |
|
|
|
public class TestKeepReformattingRules : TestBase |
|
|
|
{ |
|
|
|
{ |
|
|
|
[Test()] |
|
|
|
[Test()] |
|
|
|
public void TestKeepCommentsAtFirstColumnTrue () |
|
|
|
public void TestKeepCommentsAtFirstColumnTrue() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var policy = FormattingOptionsFactory.CreateMonoOptions () { |
|
|
|
var policy = FormattingOptionsFactory.CreateMono(); |
|
|
|
KeepCommentsAtFirstColumn = true |
|
|
|
policy.KeepCommentsAtFirstColumn = true; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test(policy, @"class Test
|
|
|
|
Test(policy, @"class Test
|
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -59,9 +58,9 @@ namespace ICSharpCode.NRefactory.CSharp.FormattingTests |
|
|
|
[Test()] |
|
|
|
[Test()] |
|
|
|
public void TestKeepCommentsAtFirstColumnFalse() |
|
|
|
public void TestKeepCommentsAtFirstColumnFalse() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var policy = FormattingOptionsFactory.CreateMonoOptions () { |
|
|
|
var policy = FormattingOptionsFactory.CreateMono(); |
|
|
|
KeepCommentsAtFirstColumn = false |
|
|
|
policy.KeepCommentsAtFirstColumn = false; |
|
|
|
}; |
|
|
|
|
|
|
|
Test(policy, @"class Test
|
|
|
|
Test(policy, @"class Test
|
|
|
|
{ |
|
|
|
{ |
|
|
|
void TestMe () |
|
|
|
void TestMe () |
|
|
|
@ -83,10 +82,9 @@ namespace ICSharpCode.NRefactory.CSharp.FormattingTests |
|
|
|
[Test()] |
|
|
|
[Test()] |
|
|
|
public void TestKeepCommentsAfterStatement() |
|
|
|
public void TestKeepCommentsAfterStatement() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var policy = FormattingOptionsFactory.CreateMonoOptions () { |
|
|
|
var policy = FormattingOptionsFactory.CreateMono(); |
|
|
|
KeepCommentsAtFirstColumn = true |
|
|
|
policy.KeepCommentsAtFirstColumn = true; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Test(policy, @"class Test
|
|
|
|
Test(policy, @"class Test
|
|
|
|
{ |
|
|
|
{ |
|
|
|
void TestMe () |
|
|
|
void TestMe () |
|
|
|
|