コード例 #1
0
        public void PartB_Actual()
        {
            var sut    = new SampleDayOne();
            var result = sut.PartB();

            Assert.Equal("5322455", result);
        }
コード例 #2
0
        public void CalculateFuelAccountingForFuelWeight(int mass, int expected)
        {
            var sut    = new SampleDayOne();
            var result = sut.CalculateFuelAccountingForFuelWeight(mass);

            Assert.Equal(expected, result);
        }
コード例 #3
0
        public void PartA_Actual()
        {
            var sut    = new SampleDayOne();
            var result = sut.PartA();

            Assert.Equal("3550236", result);
        }
コード例 #4
0
        public void CalculateFuelRequired(int mass, int expected)
        {
            var sut    = new SampleDayOne();
            var result = sut.CalculateFuelRequired(mass);

            Assert.Equal(expected, result);
        }