Browse Source

Naiver TicTacToeBrett.Voll-Test

feature/tictactoe
Felix Detig 3 years ago
parent
commit
177a5f54d3
  1. 5
      BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs
  2. 14
      BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs

5
BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs

@ -60,5 +60,10 @@ namespace MiniGames.Shared.Models
return true;
}
public bool Voll()
{
return false;
}
}
}

14
BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs

@ -135,5 +135,19 @@ namespace MiniGamesTests
// assert
Assert.Equal(erwartetGleich, erhaltenGleich);
}
[Fact]
public void Voll_LeeresBrettTest()
{
// arrange
TicTacToeBrett brett = TestBrett();
bool erwartetVoll = false;
// act
bool erhaltenVoll = brett.Voll();
// assert
Assert.Equal(erwartetVoll, erhaltenVoll);
}
}
}
Loading…
Cancel
Save