Пример #1
0
        public void TestRockBeatsScissors()
        {
            Gesture scissors = new Scissors();
            Gesture rock     = new Rock();

            Assert.IsTrue(rock.Beats(scissors) > 0);
            Assert.IsFalse(scissors.Beats(rock) > 0);
        }
Пример #2
0
        public void TestScissorsTie()
        {
            Gesture scissors1 = new Scissors();
            Gesture scissors2 = new Scissors();

            Assert.IsTrue(scissors1.Beats(scissors2) == 0);
            Assert.IsTrue(scissors2.Beats(scissors1) == 0);
        }
Пример #3
0
        public void TestScissorsBeatPaper()
        {
            Gesture scissors = new Scissors();
            Gesture paper    = new Paper();

            Assert.IsTrue(scissors.Beats(paper) > 0);
            Assert.IsFalse(paper.Beats(scissors) > 0);
        }