Beispiel #1
0
        public void FindSequence()
        {
            // 1487, 4817, 8147
            var sequence = new Problem49().FindSequence(new List <long> {
                1487, 4817, 8147
            });

            Assert.AreEqual(3, sequence.Count);

            var sequence2 = new Problem49().FindSequence(new List <long> {
                1487, 7841, 4817, 7418, 8147
            });

            Assert.AreEqual(3, sequence.Count);
        }
        public void Problem49_Return_Result_296962999629()
        {
            decimal act = Problem49.PrimePermutations();

            Assert.True(act.Equals(296962999629));
        }
Beispiel #3
0
        public void ReturnsSolution()
        {
            var result = Problem49.Solution();

            Assert.AreEqual(296962999629L, result);
        }