Ejemplo n.º 1
0
        public void LoseToScissors()
        {
            var paper = new Paper();
            var scissors = new Scissors();

            var battleResult = ThrowDownBetween(paper, scissors);

            Assert.AreEqual(scissors, battleResult.Winner);
        }
Ejemplo n.º 2
0
        public void LoseToPaper()
        {
            var rock = new Rock();
            var paper = new Paper();

            var battleResult = ThrowDownBetween(rock, paper);

            Assert.AreEqual(paper, battleResult.Winner);
        }
        public void ShouldTellThatPaperBeatsRock()
        {
            var paper = new Paper();
            var rock = new Rock();

            var winner = new ThrowDownAdjudicator(paper, rock).Winner();

            Assert.AreEqual(paper, winner);
        }