Skip to content

Commit b63a0d5

Browse files
Fix the test case to match what was given in the prompt
1 parent 4905007 commit b63a0d5

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

Tests/CSharp/MemberTests/OperatorMemberTests.cs

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -190,34 +190,32 @@ End Operator
190190
Assert.Contains("Public Shared Operator ^(i As Integer,", convertedCode);
191191
Assert.Contains("_failedMemberConversionMarker2", convertedCode);
192192
Assert.Contains("Public Shared Operator Like(s As String,", convertedCode);
193-
[Fact]
193+
}
194+
195+
[Fact]
194196

195197
public async Task XorOperatorOverloadConversionAsync()
196198

197199
{
198200

199201
await TestConversionVisualBasicToCSharpAsync(
200202

201-
@"Public Class MyType
202-
203-
Public Shared Operator Xor(left As MyType, right As MyType) As MyType
204-
205-
Throw New Global.System.NotSupportedException(""""Not supported"""")
206-
207-
End Operator
208-
209-
End Class",
203+
@"
204+
Public Class MyType
205+
Public Shared Operator Xor(left As MyType, right As MyType) As MyType
206+
Throw New Global.System.NotSupportedException(""Not supported"")
207+
End Operator
208+
End Class",
210209

211-
@"\n
212-
public partial class MyType\n
213-
{\n
214-
public static MyType operator ^(MyType left, MyType right)\n
215-
{\n
216-
throw new NotSupportedException(""""Not supported"""");\n
217-
}\n
218-
}");
210+
@"using System;
219211
212+
public partial class MyType
213+
{
214+
public static MyType operator ^(MyType left, MyType right)
215+
{
216+
throw new NotSupportedException(""Not supported"");
220217
}
218+
}");
221219

222220
}
223221
}

0 commit comments

Comments
 (0)