public void DetermineRiskFactor()
        {
            var sut    = new DayTwentyTwo();
            var result = sut.DetermineRiskFactor(510, 10, 10);

            Assert.Equal(114, result);
        }
        public void FindBestTimeThroughCave()
        {
            var sut    = new DayTwentyTwo();
            var result = sut.FindBestTimeThroughCave(510, 10, 10);

            Assert.Equal(45, result);
        }
        public void PartB_Actual()
        {
            var sut    = new DayTwentyTwo();
            var result = sut.PartB();

            Assert.Equal("1092", result);
        }
        public void PartA_Actual()
        {
            var sut    = new DayTwentyTwo();
            var result = sut.PartA();

            Assert.Equal("35397", result);
        }
        public void TestPartB()
        {
            var sut    = new DayTwentyTwo();
            var result = sut.PartB();

            Assert.Equal("2512017", result);
        }
        public void TestPartA()
        {
            var sut    = new DayTwentyTwo();
            var result = sut.PartA();

            Assert.Equal("5176", result);
        }
예제 #7
0
        public void testWithActualPartA()
        {
            var sot    = new DayTwentyTwo();
            var result = sot.CountViablePairsOfNodes();

            Assert.Equal(987, result);
        }
        public void PlayGameAndReturnWinningScore()
        {
            string filePath = @"TwentyTwo\DayTwentyTwoTestInputA.txt";
            var    sut      = new DayTwentyTwo();
            var    result   = sut.PlayGameAndReturnWinningScore(filePath, false);

            Assert.Equal(306, result);
        }
        public void TestCountInfectionActionsInCluster()
        {
            string filePath = @"TwentyTwo\DayTwentyTwoTestInput.txt";
            var    sut      = new DayTwentyTwo();
            var    result   = sut.CountInfectionActionsInCluster(filePath, 1, false, 10000);

            Assert.Equal(5587, result);
        }
        public void TestCountInfectionActionsInCluster_Resistant_High()
        {
            string filePath = @"TwentyTwo\DayTwentyTwoTestInput.txt";
            var    sut      = new DayTwentyTwo();
            var    result   = sut.CountInfectionActionsInCluster(filePath, 1, true, 10000000);

            Assert.Equal(2511944, result);
        }