|
|
@ -0,0 +1,31 @@ |
|
|
|
using MiniGames.Client.ViewModel; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace MiniGamesTests |
|
|
|
{ |
|
|
|
public class UnoTest |
|
|
|
{ |
|
|
|
public Uno UnoRegeln = new(); |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[InlineData("rot", "rot", true)] |
|
|
|
private void IstAblageStabelFarbeGleichHandTest(string ablegeStapelKarte, string neueKarte, bool erwartet) |
|
|
|
{ |
|
|
|
//arrange
|
|
|
|
var _ablegeStabelKarte = ablegeStapelKarte; |
|
|
|
var _neueKarte = neueKarte; |
|
|
|
var _erwartet = erwartet; |
|
|
|
|
|
|
|
//act
|
|
|
|
var erhalten = UnoRegeln.IstAblageStabelFarbeGleichHand(_ablegeStabelKarte, _neueKarte); |
|
|
|
|
|
|
|
//assert
|
|
|
|
Assert.Equal(_erwartet, erhalten); |
|
|
|
} |
|
|
|
} |
|
|
|
} |