Continous Integration in der Praxis Gruppenarbeit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
810 B

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);
}
}
}