示例#1
0
        public void TestEquality(
            bool expectedResult,
            int player1OfMatch1,
            int player2OfMatch1,
            int player1OfMatch2,
            int player2OfMatch2
            )
        {
            Matchup <int> firstMatchup  = new Matchup <int>(player1OfMatch1, player2OfMatch1);
            Matchup <int> secondMatchup = new Matchup <int>(player1OfMatch2, player2OfMatch2);

            Assert.Equal(expectedResult, firstMatchup.Equals(secondMatchup));
            Assert.Equal(expectedResult, secondMatchup.Equals(firstMatchup));
        }