Example #1
0
        public void Test_Exercise8(long n, string expected)
        {
            var actualResult = Exercise08.Run(n);

            actualResult.Should().BeEquivalentTo(expected);
        }
        public void TestVeryBigNumberNumber()
        {
            var actualResult = Exercise08.Run(999999999999);

            Assert.AreEqual("9 9 9 9 9 9 9 9 9 9 9 9", actualResult);
        }
        public void TestŠ¢NegativeNumber()
        {
            var actualResult = Exercise08.Run(-1354626729);

            Assert.AreEqual("1 3 5 4 6 2 6 7 2 9", actualResult);
        }
        public void TestŠ¢RoundedNumber()
        {
            var actualResult = Exercise08.Run(2000000000);

            Assert.AreEqual("2 0 0 0 0 0 0 0 0 0", actualResult);
        }
        public void TestZeroNumber()
        {
            var actualResult = Exercise08.Run(0);

            Assert.AreEqual("0", actualResult);
        }