Пример #1
0
 public void TestWithDigits()
 {
     //   v v v
     // 0.1234567...
     // 1 * 3 * 5 = 15.
     Assert.That(P40.SolveWithDigits(new [] { 1, 3, 5 }), Is.EqualTo(15));
 }
Пример #2
0
 public void TestSolve()
 {
     Console.WriteLine(P40.Solve());
 }
Пример #3
0
 public void TestNth()
 {
     Assert.That(P40.Seq().ElementAt(12), Is.EqualTo(1));
 }
Пример #4
0
 public void TestSeq()
 {
     Console.WriteLine(String.Concat(P40.Seq().Take(40).Select(x => x.ToString())));
 }