public void CalculateCorrectGrowthRate() { // Arrange const int future = 936; const int past = 136; const int years = 6; IBigFiveGrowthRateService bigFiveGrowthRateService = new BigFiveGrowthRateService(); // Act var growthRate = bigFiveGrowthRateService.GrowthRate(future, past, years); // Assert Assert.NotNull(growthRate); Assert.Equal(0, growthRate); // TODO: change 0 to expected value and do correct double comparison }
public async void CalculateCorrectROIC() { // Arrange IBigFiveGrowthRateService bigFiveGrowthRateService = new BigFiveGrowthRateService(); // Act var result = await bigFiveGrowthRateService.Calculate(_financialData, years : new int[] { 10, 5, 1 }); // Assert Assert.NotNull(result); Assert.Equal(3, result.Count); // 10 years Assert.NotNull(result[0].ROIC); Assert.Equal(0, result[0].ROIC); // TODO: change 0 to expected value and do correct double comparison // 5 years Assert.NotNull(result[1].ROIC); Assert.Equal(0, result[1].ROIC); // TODO: change 0 to expected value and do correct double comparison // 1 year Assert.NotNull(result[2].ROIC); Assert.Equal(0, result[2].ROIC); // TODO: change 0 to expected value and do correct double comparison }