Ejemplo n.º 1
0
 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),
 });
Ejemplo n.º 2
0
 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),
 });