コード例 #1
0
        public void TestThree()
        {
            int[]       x        = { 2, 2, 2, 2, 2, 2, 2 };
            string      expected = "0 7 0 0 0 0 0 0 0";
            SeventhTask c        = new SeventhTask();
            var         actual   = c.Method(x);

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void TestOne()
        {
            int[]       x        = { 1, 1, 2, 3, 3, 9, 9 };
            string      expected = "2 1 2 0 0 0 0 0 2";
            SeventhTask c        = new SeventhTask();
            var         actual   = c.Method(x);

            Assert.AreEqual(expected, actual);
        }