public void Must_CalculateNumbersSupply_CalledByAPI(long distanceMGLT, int starshipMGLT, string consumableAPI, long expectedResult) { var consumable = new Consumable(consumableAPI); var starship = new Starship(string.Empty, starshipMGLT, consumable); var result = starship.CalculateSupply(distanceMGLT); Assert.Equal(result, expectedResult); }
public void Must_CalculateNumbersSupply(long distanceMGLT, int starshipMGLT, int consumableQuantity, EPeriod consumablePeriod, long expectedResult) { var consumable = new Consumable(consumableQuantity, consumablePeriod); var starship = new Starship(string.Empty, starshipMGLT, consumable); var result = starship.CalculateSupply(distanceMGLT); Assert.Equal(result, expectedResult); }