Skip to content

Commit

Permalink
Ignore SAB decorations
Browse files Browse the repository at this point in the history
  • Loading branch information
sliekens committed Nov 20, 2024
1 parent 89da954 commit 647569e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions GW2SDK.Tests/Features/Pve/Home/Decorations/Decorations.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using GuildWars2.Chat;
using GuildWars2.Hero.Equipment.Wardrobe;
using GuildWars2.Tests.TestInfrastructure;
using GuildWars2.Tests.TestInfrastructure;

namespace GuildWars2.Tests.Features.Pve.Home.Decorations;

Expand All @@ -20,7 +18,15 @@ public async Task Can_be_enumerated()
Assert.True(actual.Id > 0);
Assert.NotEmpty(actual.Name);
Assert.NotNull(actual.Description);
Assert.NotEmpty(actual.CategoryIds);
if (actual.Id is 13 or 28 or 73 or 161 or 170 or 379 or 396 or 435 or 438 or 458 or 496 or 499 or 528 or 574 or 593 or 599 or 617 or 624 or 631 or 677 or 714 or 741) // Some SAB decorations are not linked to its category
{
Assert.Empty(actual.CategoryIds);
}
else
{
Assert.NotEmpty(actual.CategoryIds);
}

Assert.All(actual.CategoryIds, categoryId => Assert.True(categoryId > 0));
Assert.True(actual.MaxCount > 0);
Assert.NotEmpty(actual.IconHref);
Expand Down

0 comments on commit 647569e

Please sign in to comment.