예제 #1
0
        public void WithEmptySets_ShouldBeEqual()
        {
            var winCombination     = new WinCombination(1, new HashSet <int> {
            });
            var sameWinCombination = new WinCombination(1, new HashSet <int> {
            });

            ObjectAssert.AreEqual(winCombination, sameWinCombination);
        }
예제 #2
0
        public void WithSameValuesInCollections_ShouldBeEqual()
        {
            var winCombination = new WinCombination(1, new HashSet <int> {
                1, 2, 3
            });
            var shuffledWinCombination = new WinCombination(1, new HashSet <int> {
                3, 2, 1
            });

            ObjectAssert.AreEqual(winCombination, shuffledWinCombination);
        }