static void Main(string[] args) { DateTime startTime = DateTime.Now; var answer = new Problem40().GetAnswer(); DateTime endTime = DateTime.Now; Console.Out.WriteLine("Solved in " + (endTime - startTime).TotalMilliseconds + "ms"); Console.Out.WriteLine(answer); Console.In.ReadLine(); }
public void Problem40_Return_Result_210() { long act = Problem40.ChampernowneConstant(); Assert.True(act.Equals(210)); }
public static void ReturnsSolution() { var result = Problem40.Solution(); Assert.AreEqual(210, result); }