Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added test region in [ICommand] tests
  • Loading branch information
Sergio0694 committed Sep 4, 2021
commit 28bcbafa25a55d9e0b5629f5f78387b50b77009d
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