From 6aa7126b686cb61fdeead4a7c320eb62217e1efc Mon Sep 17 00:00:00 2001 From: Gehongyan Date: Fri, 18 Oct 2024 20:40:01 +0800 Subject: [PATCH] Fixes tests --- test/Kook.Net.Tests.Unit/CardBuilderTests.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/Kook.Net.Tests.Unit/CardBuilderTests.cs b/test/Kook.Net.Tests.Unit/CardBuilderTests.cs index 5b1262f2..dd15a84c 100644 --- a/test/Kook.Net.Tests.Unit/CardBuilderTests.cs +++ b/test/Kook.Net.Tests.Unit/CardBuilderTests.cs @@ -55,15 +55,12 @@ public void Constructor() [Fact] public void WithTheme() { - foreach (CardTheme theme in Enum.GetValues().Except([CardTheme.Invisible])) + foreach (CardTheme theme in Enum.GetValues()) { 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(() => invisibleThemeCard.Build()); } ///