public void Starts_Mass_Should_Be_Equal_To_Sum() { var sut = new FuelCalculator(); var result = sut.Calculate(new [] { 12, 16 }); Assert.That(result, Is.EqualTo(5)); }
public void Calculate_PositiveValues_ReturnsExpectedResult(int input, int expectedOutput) { var result = FuelCalculator.Calculate(input); result.Should().Be(expectedOutput); }
public int Star_Mass_Should_Be_Equal_To(int mass) { var sut = new FuelCalculator(); return(sut.Calculate(mass)); }
public void Part1(int input, int expected) { Assert.Equal(expected, FuelCalculator.Calculate(input)); }
public void Example1(int mass, int expectedFuel) { Assert.Equal(expectedFuel, FuelCalculator.Calculate(mass)); }
public void Test_CalculateWithSingleInput(int mass, int expectedFuelRequirement) { double actual = _fc.Calculate(mass); Assert.AreEqual(expectedFuelRequirement, actual); }