示例#1
0
        public void Part1TestDataTest(int input, int expected)
        {
            var day1 = new Day1Part1();

            var result = day1.CalculateUsage(input);

            Assert.Equal(expected, result);
        }
示例#2
0
        public void Test1Part1(int mass, int fuel)
        {
            var day1 = new Day1Part1();

            day1.Calculate(mass).ShouldBe(fuel);
        }
示例#3
0
 static void Main(string[] args)
 {
     Day1Part1 day1Part1 = new Day1Part1();
 }
示例#4
0
 public void Example1()
 {
     Assert.That(Day1Part1.GetNeededFuel(12), Is.EqualTo(2));
 }
示例#5
0
 public void Solution()
 {
     Console.WriteLine(Day1Part1.GetTotalFuel());
 }
示例#6
0
 public void Example4()
 {
     Assert.That(Day1Part1.GetNeededFuel(100756), Is.EqualTo(33583));
 }
示例#7
0
 public void Example3()
 {
     Assert.That(Day1Part1.GetNeededFuel(1969), Is.EqualTo(654));
 }