Beispiel #1
0
        public void TestPart02()
        {
            var data = TestUtil.GetFileContentsAsString("Day16.txt");

            Assert.AreEqual(2355350878831, TicketTranslation.GetTicketDepartureFieldCount(data.Split(Environment.NewLine + Environment.NewLine).Select(x => x.Split(Environment.NewLine).ToList()).ToList()));
        }
Beispiel #2
0
 public void Setup()
 {
     _items = TestUtil
              .GetFileContentsAsString("Day6.txt");
 }
Beispiel #3
0
        public void TestPart01()
        {
            var data = TestUtil.GetFileContentsAsString("Day16.txt");

            Assert.AreEqual(18227, TicketTranslation.GetTicketScanningErrorRate(data.Split(Environment.NewLine + Environment.NewLine).Select(x => x.Split(Environment.NewLine).ToList()).ToList()));
        }