Added test region in [ICommand] tests

This commit is contained in:
Sergio Pedri 2021-09-04 16:53:17 +02:00
Родитель 4bf74cf039
Коммит 28bcbafa25
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -8,6 +8,8 @@ using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.Input;
using Microsoft.VisualStudio.TestTools.UnitTesting;
#pragma warning disable SA1124
namespace UnitTests.Mvvm
{
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
@ -78,6 +80,8 @@ namespace UnitTests.Mvvm
Counter += 1;
}
#region Test region
/// <summary>
/// This is multi line with also other stuff below
/// </summary>
@ -100,6 +104,8 @@ namespace UnitTests.Mvvm
Counter += count;
}
#endregion
[ICommand]
private async Task DelayAndIncrementCounterWithValueAndTokenAsync(int count, CancellationToken token)
{