diff --git a/Sources/Stim.Model/Game.cs b/Sources/Stim.Model/Game.cs index 9a0707b..064d046 100644 --- a/Sources/Stim.Model/Game.cs +++ b/Sources/Stim.Model/Game.cs @@ -59,7 +59,7 @@ namespace Model get => tags; set { - if (value == null || value.Count != 3) return; + if (value == null || value.Count > 3) return; tags = value; } } diff --git a/Sources/TestProject1/TestGame.cs b/Sources/TestProject1/TestGame.cs index 2592286..5396251 100644 --- a/Sources/TestProject1/TestGame.cs +++ b/Sources/TestProject1/TestGame.cs @@ -66,7 +66,7 @@ namespace Test Game game3 = new("name", "description", 2012, new List {"1","2"}, "cover"); Assert.NotNull(game3.Tags); - Assert.Empty(game3.Tags); + Assert.Equal(2,game3.Tags.Count); } [Fact] @@ -134,7 +134,7 @@ namespace Test Game game = new("name", "description", 2012, new List { "1", "2", "3" }, "cover"); game.NameChange("newName"); game.TagChange(new List { "1", "2" }); - Assert.Empty(game.Tags); + Assert.Equal(3, game.Tags.Count); } [Fact]