コード例 #1
0
        public void ShouldTellThatRockBeatsScissors()
        {
            var rock = new Rock();
            var scissors = new Scissors();

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

            Assert.AreEqual(rock, winner);
        }
コード例 #2
0
        public void ShouldTellThatPaperBeatsRock()
        {
            var paper = new Paper();
            var rock = new Rock();

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

            Assert.AreEqual(paper, winner);
        }