From 177a5f54d3e7840aed4f17fb4042fa62cadee9ba Mon Sep 17 00:00:00 2001 From: Felix Detig Date: Sat, 12 Feb 2022 00:02:14 +0100 Subject: [PATCH] Naiver TicTacToeBrett.Voll-Test --- .../MiniGames/Shared/Models/TicTacToeBrett.cs | 5 +++++ .../MiniGamesTests/TicTacToeBrettTest.cs | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs index e0dfb2b..811c25b 100644 --- a/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs +++ b/BlazorSolution/MiniGames/Shared/Models/TicTacToeBrett.cs @@ -60,5 +60,10 @@ namespace MiniGames.Shared.Models return true; } + + public bool Voll() + { + return false; + } } } diff --git a/BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs b/BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs index f767525..c688c91 100644 --- a/BlazorSolution/MiniGamesTests/TicTacToeBrettTest.cs +++ b/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); + } } }