Exemple #1
0
        public void FindAnswerDayThirteenPuzzleOne()
        {
            var  initial = new Dictionary <long, long>();
            var  updated = DockingInitializer.Initialize(initial, this.inputData);
            long sum     = DockingInitializer.Sum(updated);

            Assert.AreEqual(1, sum);
        }
Exemple #2
0
        public void TestSum()
        {
            var  initial = new Dictionary <long, long>();
            var  updated = DockingInitializer.Initialize(initial, this.testData);
            long sum     = DockingInitializer.Sum(updated);

            Assert.AreEqual(165, sum);
        }
Exemple #3
0
        public void TestInitialize()
        {
            var initial  = new Dictionary <long, long>();
            var expected = new Dictionary <long, long>();

            expected[7] = 101;
            expected[8] = 64;
            var updated = DockingInitializer.Initialize(initial, this.testData);

            Assert.AreEqual(expected, updated);
        }
Exemple #4
0
 public void Setup()
 {
     this.testData  = DockingInitializer.ReadFileAsArray(FilePathTestData);
     this.inputData = DockingInitializer.ReadFileAsArray(FilePathInputData);
 }