Exemplo n.º 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);
        }
Exemplo n.º 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);
        }