Exemple #1
0
        public void WithEmptyDicts_ShouldBeEqual()
        {
            var stats     = new GamesStatistic(new Dictionary <WinCombination, int>());
            var sameStats = new GamesStatistic(new Dictionary <WinCombination, int>());

            ObjectAssert.AreEqual(stats, sameStats);
        }
Exemple #2
0
        public void WithSameValuesInCollections_ShouldBeEqual()
        {
            var stats = new GamesStatistic(new Dictionary <WinCombination, int>()
            {
                [new WinCombination(1, new HashSet <int> { 1, 2 })] = 3,
                [new WinCombination(2, new HashSet <int> { 1, 7 })] = 4
            });
            var sameStats = new GamesStatistic(new Dictionary <WinCombination, int>()
            {
                [new WinCombination(1, new HashSet <int> { 1, 2 })] = 3,
                [new WinCombination(2, new HashSet <int> { 1, 7 })] = 4
            });

            ObjectAssert.AreEqual(stats, sameStats);
        }