Exemple #1
0
        public void TestDictionary()
        {
            string[] s_array = { "Eric", "Clapton", "Rules", "The", "World" };
            int[]    i_array = { 1, 5, 6, 5, 19 };

            Dictionary <string, int> dict = new Dictionary <string, int>();

            for (int i = 0; i < s_array.Length; ++i)
            {
                dict[s_array[i]] = i_array[i];
            }

            InterfaceTests.TestDictionary <string, int>(dict, s_array, i_array, "foo", false);
            InterfaceTests.TestDictionaryGeneric <string, int>(dict, s_array, i_array, "foo", false, null, null);
        }