public static IEnumerable <object[]> Can_detect_draw_TestData() => BoardGridHelper .CreateWinningBoardGridForPlayerOne() .Boards .Where(x => x.WinMethod == WinMethod.Draw) .Select(x => new object[] { x.Board, new WinState(x.WinMethod), });
public static IEnumerable <object[]> Can_detect_winner_TestData() => BoardGridHelper .CreateWinningBoardGridForPlayerOne() .Boards .Where(x => x.WinMethod != WinMethod.None && x.WinMethod != WinMethod.Draw ) .Select(x => new object[] { $"Board is in method '{x.WinMethod}' of 4 times", x.Board, new WinState(x.WinMethod, BoardSlotValue.P1), });