1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
7
namespace NRefactoryToBooConverter.Tests
10
public class ComplexTests : TestHelper
13
public void MovingLocals()
15
TestInClass("public void Run() { if (a) { int b = 1; } else { int b = 2; } }",
16
"public def Run() as System.Void:\n" +
17
"\tb as System.Int32\n" +
25
public void RenamingLocals()
27
TestInClass("public void Run() { if (a) { int b = 1; } else { double b = 2; } }",
28
"public def Run() as System.Void:\n" +
30
"\t\tb as System.Int32 = 1\n" +
32
"\t\tb__2 as System.Double = 2");