Skip to content

Commit 28bcbaf

Browse files
committed
Added test region in [ICommand] tests
1 parent 4bf74cf commit 28bcbaf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UnitTests/UnitTests.NetCore/Mvvm/Test_ICommandAttribute.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
using Microsoft.Toolkit.Mvvm.Input;
99
using Microsoft.VisualStudio.TestTools.UnitTesting;
1010

11+
#pragma warning disable SA1124
12+
1113
namespace UnitTests.Mvvm
1214
{
1315
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
@@ -78,6 +80,8 @@ private async Task DelayAndIncrementCounterAsync()
7880
Counter += 1;
7981
}
8082

83+
#region Test region
84+
8185
/// <summary>
8286
/// This is multi line with also other stuff below
8387
/// </summary>
@@ -100,6 +104,8 @@ private async Task DelayAndIncrementCounterWithValueAsync(int count)
100104
Counter += count;
101105
}
102106

107+
#endregion
108+
103109
[ICommand]
104110
private async Task DelayAndIncrementCounterWithValueAndTokenAsync(int count, CancellationToken token)
105111
{

0 commit comments

Comments
 (0)