public void TestVeryBigNumber()
        {
            var actualResult = Exercise11.Run(2147483647);

            Assert.AreEqual(7463847412, actualResult);
        }
        public void TestNegativeNumber()
        {
            var actualResult = Exercise11.Run(-12);

            Assert.AreEqual(-11, actualResult);
        }
        public void TestPolindromeNumber()
        {
            var actualResult = Exercise11.Run(115511);

            Assert.AreEqual(115511, actualResult);
        }
        public void TestZeroNumber()
        {
            var actualResult = Exercise11.Run(0);

            Assert.AreEqual(0, actualResult);
        }
        public void TestOddNumber()
        {
            var actualResult = Exercise11.Run(158);

            Assert.AreEqual(851, actualResult);
        }
        public void TestEvenNumber()
        {
            var actualResult = Exercise11.Run(1584);

            Assert.AreEqual(4851, actualResult);
        }
Beispiel #7
0
        public void Test_ReverseNumber(long n, long expected)
        {
            var actualResult = Exercise11.Run(n);

            actualResult.Should().Be(expected);
        }