|
@ -122,5 +122,24 @@ namespace MiniGamesTests |
|
|
//assert
|
|
|
//assert
|
|
|
Assert.Equal(erwartetesErg, getestetesErg); |
|
|
Assert.Equal(erwartetesErg, getestetesErg); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Theory] |
|
|
|
|
|
[InlineData(0, stein)] |
|
|
|
|
|
[InlineData(1, schere)] |
|
|
|
|
|
[InlineData(2, papier)] |
|
|
|
|
|
[InlineData(3, echse)] |
|
|
|
|
|
[InlineData(4, spock)] |
|
|
|
|
|
public void PChand(int index, string erwartet) |
|
|
|
|
|
{ |
|
|
|
|
|
//arrange
|
|
|
|
|
|
int _index = index; |
|
|
|
|
|
string _erwartet = erwartet; |
|
|
|
|
|
|
|
|
|
|
|
//act
|
|
|
|
|
|
string erg = Spiel.CPUHand(_index); |
|
|
|
|
|
|
|
|
|
|
|
//assert
|
|
|
|
|
|
Assert.Equal(_erwartet, erg); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |