public void Part1TestDataTest(int input, int expected) { var day1 = new Day1Part1(); var result = day1.CalculateUsage(input); Assert.Equal(expected, result); }
public void Test1Part1(int mass, int fuel) { var day1 = new Day1Part1(); day1.Calculate(mass).ShouldBe(fuel); }
static void Main(string[] args) { Day1Part1 day1Part1 = new Day1Part1(); }
public void Example1() { Assert.That(Day1Part1.GetNeededFuel(12), Is.EqualTo(2)); }
public void Solution() { Console.WriteLine(Day1Part1.GetTotalFuel()); }
public void Example4() { Assert.That(Day1Part1.GetNeededFuel(100756), Is.EqualTo(33583)); }
public void Example3() { Assert.That(Day1Part1.GetNeededFuel(1969), Is.EqualTo(654)); }