コード例 #1
0
        public void TestPlanetTemps2()
        {
            var    s      = new PlanetTemperatures.Solution();
            var    temps  = new int[] { 2, -3, 3, 1, 10, 8, 2, 5, 13, -5, 3, -18 };
            string season = s.solution(temps);

            Assert.Equal("AUTUMN", season);
            Console.WriteLine("Season: " + season);
        }
コード例 #2
0
        public void TestPlanetTemps()
        {
            var    s      = new PlanetTemperatures.Solution();
            var    temps  = new int[] { -3, -14, -5, 7, 8, 42, 8, 3 };
            string season = s.solution(temps);

            Assert.Equal("SUMMER", season);
            Console.WriteLine("Season: " + season);
        }