Browse Source

"Karte" in "Brett" umbenannt

feature/tictactoe
Felix Detig 2 years ago
parent
commit
bd36360e26
  1. 6
      BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs
  2. 2
      BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs
  3. 6
      BlazorSolution/MiniGamesTests/TicTacToeTest.cs

6
BlazorSolution/MiniGames/Client/ViewModel/TicTacToe.cs

@ -11,6 +11,12 @@ namespace MiniGames.Client.ViewModel
this.Model = model;
}
public int[,] Brett
{
get { return Model.Brett; }
set { Model.Brett = value; }
}
public bool SpielerInput(int spielerIndex, int posIndex)
{
return true;

2
BlazorSolution/MiniGames/Shared/Models/TicTacToeModel.cs

@ -9,6 +9,6 @@ namespace MiniGames.Shared.Models
public class TicTacToeModel
{
public SpielerModel[] Spieler { get; set; }
public int[,] Karte { get; set; }
public int[,] Brett { get; set; }
}
}

6
BlazorSolution/MiniGamesTests/TicTacToeTest.cs

@ -12,7 +12,7 @@ namespace MiniGamesTests
{
public class TicTacToeTest
{
int[,] StandardKarte()
int[,] StandardBrett()
{
return new int[,]
{
@ -44,7 +44,7 @@ namespace MiniGamesTests
return new TicTacToeModel
{
Spieler = StandardSpieler(),
Karte = StandardKarte(),
Brett = StandardBrett(),
};
}
@ -54,6 +54,7 @@ namespace MiniGamesTests
{
// arrange
TicTacToe spiel = new(StandardModel());
int[,] brett = spiel.Brett;
bool erwartetGesetzt = gesetzt;
// act
@ -61,6 +62,7 @@ namespace MiniGamesTests
// assert
Assert.Equal(erwartetGesetzt, erhaltenGesetzt);
}
}
}
Loading…
Cancel
Save