Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Oct 18, 2024
1 parent 8f67b97 commit 6aa7126
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/Kook.Net.Tests.Unit/CardBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,12 @@ public void Constructor()
[Fact]
public void WithTheme()
{
foreach (CardTheme theme in Enum.GetValues<CardTheme>().Except([CardTheme.Invisible]))
foreach (CardTheme theme in Enum.GetValues<CardTheme>())
{
CardBuilder builder = new CardBuilder().WithTheme(theme);
Assert.Equal(theme, builder.Theme);
Assert.Equal(theme, builder.Build().Theme);
}

CardBuilder invisibleThemeCard = new CardBuilder().WithTheme(CardTheme.Invisible);
Assert.Throws<InvalidOperationException>(() => invisibleThemeCard.Build());
}

/// <summary>
Expand Down

0 comments on commit 6aa7126

Please sign in to comment.