static void Main(string[] args) { string pathToFile = @"C:\Users\sophia.caspar\source\repos\AdventOfCode17\AdventOfCode17.Day2\dataInput.txt"; var fileReader = new FileReader(pathToFile); var input = fileReader.GetInputFromFile(); var checksum = new Checksum(); //Console.WriteLine(checksum.CalculateChecksum(input)); Console.WriteLine(checksum.CalculateDivisibleChecksum(input)); }
public void Should_get_the_divisible_checksum() { int divisible = _checksum.CalculateDivisibleChecksum(_divisibleChecksumTestList); Assert.AreEqual(9, divisible); }