public void TestVeryBigNumberNumber()
        {
            var actualResult = Exercise06.Run(999999999999);

            Assert.AreEqual(108, actualResult);
        }
        public void TestŠ¢RoundedNumber()
        {
            var actualResult = Exercise06.Run(2000000000);

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

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

            Assert.AreEqual(45, actualResult);
        }
Example #5
0
        public void Test_Exercise6(long n, long expected)
        {
            var actualResult = Exercise06.Run(n);

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