Skip to content

Commit ae51afd

Browse files
committed
Fixed test behavior to actually throw an exception
1 parent 67b577a commit ae51afd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LinkDotNet.Blog.UnitTests/Web/Shared/Services/UserRecordServiceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public async Task ShouldNotStoreForAdmin()
8181
[Fact]
8282
public async Task ShouldNotThrowExceptionToOutsideWorld()
8383
{
84-
localStorageService.Setup(l => l.SetItemAsync("user", "some value")).Throws<Exception>();
84+
localStorageService.Setup(l => l.SetItemAsync("user", It.IsAny<Guid>())).Throws<Exception>();
8585

8686
Func<Task> act = () => sut.StoreUserRecordAsync();
8787

0 commit comments

Comments
 (0)