3rdparty/NRefactory/ICSharpCode.NRefactory.Tests/IndentationTests/BlockTest.cs
/// <summary>
/// Bug 18463 - Indentation does not work when typed statement does not require semicolon
/// </summary>
Bug 18463 - Indentation does not work when typed statement does not require semicolon
Bug 18463 - Indentation does not work when typed statement does not require semicolon
[Test]
		public void TestBug18463()
		{
			var policy = FormattingOptionsFactory.CreateMono();
			var indent = Helper.CreateEngine(@"
namespace FooBar
{
	public class TestProject
	{
		public static int Main ()
		{
			switch (current_token) {
				case Token.CLOSE_PARENS:
				case Token.TRUE:
				case Token.FALSE:
				case Token.NULL:
				case Token.LITERAL:
					return Token.INTERR;
			}
			if (true) {
				$
", policy);
			Assert.AreEqual("\t\t\t\t", indent.ThisLineIndent);
			Assert.AreEqual("\t\t\t\t", indent.NextLineIndent);
		}
[ Test ] public void TestBug18463 ( ) { var policy = FormattingOptionsFactory . CreateMono ( ) ; var indent = Helper . CreateEngine ( @"
namespace FooBar
{
	public class TestProject
	{
		public static int Main ()
		{
			switch (current_token) {
				case Token.CLOSE_PARENS:
				case Token.TRUE:
				case Token.FALSE:
				case Token.NULL:
				case Token.LITERAL:
					return Token.INTERR;
			}
			if (true) {
				$
" , policy ) ; Assert . AreEqual ( " \t \t \t \t " , indent . ThisLineIndent ) ; Assert . AreEqual ( " \t \t \t \t " , indent . NextLineIndent ) ; }
Bug 18463 - Indentation does not work when typed statement does not require semicolon
Bug 18463 - Indentation does not work when typed statement does not require semicolon