File tree Expand file tree Collapse file tree 1 file changed +16
-18
lines changed
Expand file tree Collapse file tree 1 file changed +16
-18
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments