예제 #1
0
        public void LoseToScissors()
        {
            var paper = new Paper();
            var scissors = new Scissors();

            var battleResult = ThrowDownBetween(paper, scissors);

            Assert.AreEqual(scissors, battleResult.Winner);
        }
예제 #2
0
        public void BeatScissors()
        {
            var rock = new Rock();
            var scissors = new Scissors();

            var battleResult = ThrowDownBetween(rock, scissors);

            Assert.AreEqual(rock, battleResult.Winner);
        }
        public void ShouldTellThatRockBeatsScissors()
        {
            var rock = new Rock();
            var scissors = new Scissors();

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

            Assert.AreEqual(rock, winner);
        }