Skip to content

Commit

Permalink
#26 Added UnitTest for default token logic
Browse files Browse the repository at this point in the history
  • Loading branch information
skuill committed Dec 10, 2024
1 parent 405591d commit f145c5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tests/LyricsScraperNET.UnitTest/LyricsScraperClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,20 @@ public async Task SearchLyricAsync_Should_Not_Cancel_If_Token_Not_Requested()
Assert.NotNull(result);
}

[Fact]
public async Task SearchLyricAsync_Should_Not_Cancel_If_Token_Default()
{
// Arrange
var searchRequest = GetSearchRequestMock();
var client = GetLyricsScraperClientWithMockedProvider();

// Act
var result = await client.SearchLyricAsync(searchRequest);

// Assert
Assert.NotNull(result);
}

private ExternalProviderType[] GetExternalProviderTypes()
{
return new[] { ExternalProviderType.AZLyrics, ExternalProviderType.SongLyrics };
Expand Down

0 comments on commit f145c5f

Please sign in to comment.