コード例 #1
0
 //its not 135541730127163
 //its not 135541730225161 either;
 //its not 180648334137911 all too high
 //its not 125113350
 public void ShoulCalculateContigiousCorrectly(string datafile, int preamble, int result)
 {
     using (AOC aoc = new AOC())
     {
         List <string> input = ParseInput(datafile);
         List <double> data  = aoc.ProcessData(input);
         Assert.Equal(result, aoc.GetNotSummableValue(data, preamble, true));
     }
 }