|
|
@ -0,0 +1,34 @@ |
|
|
|
using MiniGames.Client.ViewModel; |
|
|
|
using MiniGames.Shared.Models; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace MiniGamesTests |
|
|
|
{ |
|
|
|
public class SchereSteinPapierEchseSpockTest |
|
|
|
{ |
|
|
|
SchereSteinPapierEchseSpock Spiel = new(); |
|
|
|
|
|
|
|
|
|
|
|
[Theory] |
|
|
|
[InlineData(0, 0, "Unentschieden")] |
|
|
|
public void IsStone(int hand, int gegnerHand, string erwartet) |
|
|
|
{ |
|
|
|
//arrange
|
|
|
|
int handId = hand; |
|
|
|
int gegnerId = gegnerHand; |
|
|
|
string erwartetesErg = erwartet; |
|
|
|
|
|
|
|
//act
|
|
|
|
string getestetesErg = Spiel.SpielerStein(handId, gegnerId); |
|
|
|
|
|
|
|
//assert
|
|
|
|
Assert.Equal(erwartetesErg, getestetesErg); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |