コード例 #1
0
        public void ArrangeCoinsTest()
        {
            var s = new Solution();
            int n, expected;

            n        = 5;
            expected = 2;
            Assert.Equal(expected, s.ArrangeCoins(n));

            n        = 8;
            expected = 3;
            Assert.Equal(expected, s.ArrangeCoins(n));
        }