Exemple #1
0
        public void Test6()
        {
            Random random = new Random(1);

            for (int i = 0; i < 100; i++)
            {
                long n = random.Next(1000000);

                Assert.AreEqual(NumberOf2.SolveBrute(n), NumberOf2.Solve(n));
            }
        }
Exemple #2
0
        public void Test5()
        {
            long n = 19;

            Assert.AreEqual(NumberOf2.SolveBrute(n), NumberOf2.Solve(n));
        }