Skip to content

Commit 62ff260

Browse files
Make test case source and target compile: Fixes #111 and fixes #112
1 parent bee63bb commit 62ff260

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Tests/CSharp/MemberTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ public static void TestMethod<T, T2, T3>(out T argument, ref T2 argument2, T3 ar
119119
public void TestAbstractMethod()
120120
{
121121
TestConversionVisualBasicToCSharp(
122-
@"Class TestClass
122+
@"MustInherit Class TestClass
123123
Public MustOverride Sub TestMethod()
124-
End Class", @"class TestClass
124+
End Class", @"abstract class TestClass
125125
{
126126
public abstract void TestMethod();
127127
}");

Tests/CSharp/StandaloneMultiStatementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public void SingleEmptyClass()
8585
public void SingleAbstractMethod()
8686
{
8787
TestConversionVisualBasicToCSharp(
88-
@"Private MustOverride Sub abs()",
89-
@"private abstract void abs();");
88+
@"Protected MustOverride Sub abs()",
89+
@"protected abstract void abs();");
9090
}
9191

9292
[Fact]

Tests/VB/MemberTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ End Sub
8989
public void TestAbstractMethod()
9090
{
9191
TestConversionCSharpToVisualBasic(
92-
@"class TestClass
92+
@"abstract class TestClass
9393
{
9494
public abstract void TestMethod();
95-
}", @"Class TestClass
95+
}", @"MustInherit Class TestClass
9696
Public MustOverride Sub TestMethod()
9797
End Class");
9898
}

Tests/VB/StandaloneMultiStatementTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public void SingleEmptyClass()
8282
public void SingleAbstractMethod()
8383
{
8484
TestConversionCSharpToVisualBasic(
85-
@"abstract void abs();",
86-
@"Private MustOverride Sub abs()");
85+
@"protected abstract void abs();",
86+
@"Protected MustOverride Sub abs()");
8787
}
8888

8989
[Fact]

0 commit comments

Comments
 (0)