Skip to content

Commit

Permalink
Update spectator featured games test
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Feb 5, 2024
1 parent deb32a8 commit 85cb341
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Camille.Enums;
using Camille.RiotGames.SpectatorV4;
using System;

namespace Camille.RiotGames.Test
{
Expand Down Expand Up @@ -66,7 +67,10 @@ public static void CheckFeatured(FeaturedGames featured)
{
Assert.IsNotNull(featured);
Assert.IsNotNull(featured.GameList);
Assert.AreEqual(5, featured.GameList.Length);
if (0 == featured.GameList.Length)
{
Console.Error.WriteLine("Warning: featured game list is empty.");
}
foreach (var gameInfo in featured.GameList)
{
Assert.IsNotNull(gameInfo);
Expand Down

0 comments on commit 85cb341

Please sign in to comment.