Ejemplo n.º 1
0
        public ListDictionaryTest()
        {
            DictionaryStrategyFactory <string> .Strategy = DictionaryStrategyFactory <string> .GetStrategy();

            _dictionary = new ListDictionary <string, string>();
        }
        public void GetStrategy_Return_OrderedDictionaryStrategy_WithOderedObject()
        {
            var res = DictionaryStrategyFactory <string> .GetStrategy();

            res.Should().BeOfType <OrderedDictionaryStrategy>();
        }
        public void GetStrategy_Return_UnorderedDictionaryStrategy_WithUnorderedObject()
        {
            var res = DictionaryStrategyFactory <object> .GetStrategy();

            res.Should().BeOfType <UnorderedDictionaryStrategy>();
        }
        public void Dispose()
        {
            DictionaryStrategyFactory <string> .Strategy = DictionaryStrategyFactory <string> .GetStrategy();

            DictionaryStrategyFactory <object> .Strategy = DictionaryStrategyFactory <object> .GetStrategy();
        }