Skip to content

Commit 4b87f8d

Browse files
committed
fix typo
1 parent 6a37bcc commit 4b87f8d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/AspectCore.Extensions.DependencyInjection.Test/Issues/InterceptorAttributeWithArrayMemberTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ public override async Task Invoke(AspectContext context, AspectDelegate next)
2929

3030
public interface IUserAppService
3131
{
32-
int ExcuteTimes { get; }
32+
int ExecuteTimes { get; }
3333

34-
[Test(Times = new int[] { 10, 100 })]
34+
[Test(Times = new[] { 10, 100 })]
3535
string DisplayName(string firstName, string lastName);
3636
}
3737

3838
public class UserAppService : IUserAppService
3939
{
40-
private int _excuteTimes;
41-
public int ExcuteTimes => _excuteTimes;
40+
private int _executeTimes;
41+
public int ExecuteTimes => _executeTimes;
4242

4343
public string DisplayName(string firstName, string lastName)
4444
{
45-
Interlocked.Increment(ref _excuteTimes);
45+
Interlocked.Increment(ref _executeTimes);
4646
var fullName = $"{firstName} {lastName}";
4747
return fullName;
4848
}
@@ -59,7 +59,7 @@ public void InterceptorAttributeWithArrayMember_Property_Test()
5959
var usrAppSrv = sp.GetRequiredService<IUserAppService>();
6060
var name = usrAppSrv.DisplayName("gain", "loss");
6161
Assert.Equal("gain loss", name);
62-
Assert.Equal(10 + 100, usrAppSrv.ExcuteTimes);
62+
Assert.Equal(10 + 100, usrAppSrv.ExecuteTimes);
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)