File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,30 @@ public async Task Test_ICommandAttribute_ConcurrencyControl_AsyncRelayCommandOfT
270
270
Assert . IsTrue ( model . AwaitForInputTaskCommand . CanExecute ( null ) ) ;
271
271
}
272
272
273
+ // See https://github.com/CommunityToolkit/dotnet/issues/13
274
+ [ TestMethod ]
275
+ public void Test_ICommandAttribute_ViewModelRightAfterRegion ( )
276
+ {
277
+ ViewModelForIssue13 model = new ( ) ;
278
+
279
+ Assert . IsNotNull ( model . GreetCommand ) ;
280
+ Assert . IsInstanceOfType ( model . GreetCommand , typeof ( RelayCommand ) ) ;
281
+ }
282
+
283
+ #region Region
284
+ public class Region
285
+ {
286
+ }
287
+ #endregion
288
+
289
+ public partial class ViewModelForIssue13
290
+ {
291
+ [ ICommand ]
292
+ private void Greet ( )
293
+ {
294
+ }
295
+ }
296
+
273
297
public sealed partial class MyViewModel
274
298
{
275
299
public Task ? ExternalTask { get ; set ; }
You can’t perform that action at this time.
0 commit comments