Esempio n. 1
0
        public void BeginningAndEnding()
        {
            Dictionary <string, string> expected = new Dictionary <string, string>()
            {
                { "b", "g" },
                { "c", "e" }
            };
            Dictionary <string, string> actual = exercises.BeginningAndEnding(new string[] { "code", "bug" });

            AssertCollections(expected, actual);

            expected = new Dictionary <string, string>()
            {
                { "m", "n" },
            };
            actual = exercises.BeginningAndEnding(new string[] { "man", "moon", "main" });
            AssertCollections(expected, actual);


            expected = new Dictionary <string, string>()
            {
                { "g", "d" },
                { "m", "t" },
                { "n", "t" }
            };
            actual = exercises.BeginningAndEnding(new string[] { "muddy", "good", "moat", "good", "night" });
            AssertCollections(expected, actual);
        }