Exemplo n.º 1
0
        public void ConvertHashtableToDictionaryTest()
        {
            var table = new Hashtable();

            table["Name"] = "Alex";
            table["Age"]  = "10086";

            var dict = DictConv.ToDictionary <string, string>(table);

            dict.ShouldNotBeNull();
            dict.Count.ShouldBe(2);
        }