Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }