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.
|
|
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)] [InlineData("blau", "rot", false)] [InlineData("rot", "blau", false)] [InlineData("blau", "blau", true)] [InlineData("gelb", "rot", false)] [InlineData("gruen", "gruen", 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); } } }
|