Skip to content

Commit

Permalink
Added test region in [ICommand] tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Sep 4, 2021
1 parent 4bf74cf commit 28bcbaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UnitTests/UnitTests.NetCore/Mvvm/Test_ICommandAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
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")]
Expand Down Expand Up @@ -78,6 +80,8 @@ private async Task DelayAndIncrementCounterAsync()
Counter += 1;
}

#region Test region

/// <summary>
/// This is multi line with also other stuff below
/// </summary>
Expand All @@ -100,6 +104,8 @@ private async Task DelayAndIncrementCounterWithValueAsync(int count)
Counter += count;
}

#endregion

[ICommand]
private async Task DelayAndIncrementCounterWithValueAndTokenAsync(int count, CancellationToken token)
{
Expand Down

0 comments on commit 28bcbaf

Please sign in to comment.