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.

34 lines
801 B

  1. using MiniGames.Client.ViewModel;
  2. using MiniGames.Shared.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Xunit;
  9. namespace MiniGamesTests
  10. {
  11. public class SchereSteinPapierEchseSpockTest
  12. {
  13. SchereSteinPapierEchseSpock Spiel = new();
  14. [Theory]
  15. [InlineData(0, 0, "Unentschieden")]
  16. public void IsStone(int hand, int gegnerHand, string erwartet)
  17. {
  18. //arrange
  19. int handId = hand;
  20. int gegnerId = gegnerHand;
  21. string erwartetesErg = erwartet;
  22. //act
  23. string getestetesErg = Spiel.SpielerStein(handId, gegnerId);
  24. //assert
  25. Assert.Equal(erwartetesErg, getestetesErg);
  26. }
  27. }
  28. }