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 MiniGames.Shared.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xunit;
namespace MiniGamesTests { public class SchereSteinPapierEchseSpockTest { SchereSteinPapierEchseSpock Spiel = new();
[Theory] [InlineData(0, 0, "Unentschieden")] public void IsStone(int hand, int gegnerHand, string erwartet) { //arrange
int handId = hand; int gegnerId = gegnerHand; string erwartetesErg = erwartet;
//act
string getestetesErg = Spiel.SpielerStein(handId, gegnerId);
//assert
Assert.Equal(erwartetesErg, getestetesErg); }
} }
|