|
@ -82,5 +82,27 @@ namespace MiniGamesTests |
|
|
//assert
|
|
|
//assert
|
|
|
Assert.Equal(erwartetesErg, getestetesErg); |
|
|
Assert.Equal(erwartetesErg, getestetesErg); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Theory] |
|
|
|
|
|
[InlineData(echse, stein, verloren)] |
|
|
|
|
|
[InlineData(echse, schere, verloren)] |
|
|
|
|
|
[InlineData(echse, papier, gewonnen)] |
|
|
|
|
|
[InlineData(echse, echse, unentschieden)] |
|
|
|
|
|
[InlineData(echse, spock, gewonnen)] |
|
|
|
|
|
public void IsLizard(string hand, string gegner, string erwartet) |
|
|
|
|
|
{ |
|
|
|
|
|
//arrange
|
|
|
|
|
|
string spielerHand = hand; |
|
|
|
|
|
string gegnerHand = gegner; |
|
|
|
|
|
string erwartetesErg = erwartet; |
|
|
|
|
|
|
|
|
|
|
|
//act
|
|
|
|
|
|
string getestetesErg = Spiel.SpielerEchse(spielerHand, gegnerHand); |
|
|
|
|
|
|
|
|
|
|
|
//assert
|
|
|
|
|
|
Assert.Equal(erwartetesErg, getestetesErg); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |