mwyrodek_tddworkshop/RockPaperScisors/RockPaperScisors.Backend.Tests/RockTests.cs
using RockPaperScissors.Backend;
using Xunit;

namespace RockPaperScisors.Backend.Tests
{
    public class RockTests
    {
        Rock sut;

        public RockTests()
        {
            sut = new Rock();
        }

        [Fact]
        public void Rock_GetType_ReturnsRock()
        {
            var actualType = sut.MoveType;
            Assert.Equal(MoveType.ROCK, actualType);
        }

        [Theory]
        [InlineData(MoveType.SUN, TurnResult.LOSE)]
        [InlineData(MoveType.SCISSORS, TurnResult.WIN)]
        [InlineData(MoveType.PAPER, TurnResult.LOSE)]
        [InlineData(MoveType.ROCK, TurnResult.TIE)]
        [InlineData(MoveType.CLIPY, TurnResult.WIN)]
        public void Rock_IsWinning_ReturnsExpected(MoveType playerMove, TurnResult expected)
        {
            var actualResult = sut
                .IsWinning(playerMove);
            Assert.Equal(expected, actualResult);
        }
    }
}
