예제 #1
0
        public void Reverse2Test()
        {
            var xList     = new[] { 123, -120, 0 };
            var expecteds = new[] { 321, -21, 0 };

            foreach (var(x, expected) in xList.Zip(expecteds))
            {
                ReverseInteger.Reverse2(x).Should().Be(expected);
            }
        }