public Dictionary <int, int> GetPlain()
        {
            Plain plain = new Plain();
            Dictionary <int, int> numbers = plain.GeneratePlain();

            //numbers.Reverse().ToDictionary<>

            return(numbers);
        }
Ejemplo n.º 2
0
        public void TestPlain()
        {
            Plain plain = new Plain();
            Dictionary <int, int> numbers = plain.GeneratePlain();
            int value = 0;

            foreach (var grp in numbers)
            {
                if (grp.Key == 12)
                {
                    value = grp.Value;
                }
            }
            Assert.AreEqual(44, value);
        }