예제 #1
0
        public void ClearEmptyTest()
        {
            // Setup the dictionary
            var dict = new ItemDictionary
            {
                ["game-1"] = new ConcurrentList <DatItem> {
                    new Rom(),
                },
                ["game-2"] = new ConcurrentList <DatItem>(),
                ["game-3"] = null,
            };

            dict.ClearEmpty();
            Assert.Single(dict.Keys);
        }