Beispiel #1
0
        public void Part2TestDataTest(int input, int expected)
        {
            var day2 = new Day1Part2();

            var result = day2.CalculateUsageExtended(input);

            Assert.Equal(expected, result);
        }
Beispiel #2
0
 public void Example1()
 {
     Assert.That(Day1Part2.GetNeededFuel(14), Is.EqualTo(2));
 }
Beispiel #3
0
 public void Solution()
 {
     Console.WriteLine(Day1Part2.GetTotalFuel());
 }
Beispiel #4
0
 public void Example3()
 {
     Assert.That(Day1Part2.GetNeededFuel(100756), Is.EqualTo(50346));
 }
Beispiel #5
0
 public void Example2()
 {
     Assert.That(Day1Part2.GetNeededFuel(1969), Is.EqualTo(966));
 }
Beispiel #6
0
        public void Test1Part2(int mass, int fuel)
        {
            var day1 = new Day1Part2();

            day1.Calculate(mass).ShouldBe(fuel);
        }