static void CalculateGbceAllShareIndex()
        {
            Console.WriteLine("Calculating GBCE All Share Index....");

            Console.WriteLine("GBCE All Share Index = " + _stockService.GBCEAllShareIndex());
            Console.WriteLine("Completed GBCE All Share Index");
            Console.WriteLine("------------------------------------");
            Console.WriteLine();
        }
Пример #2
0
        public void Get_All_Share_Index_Test()
        {
            //Arrange
            SetUp();

            //Act
            double result = _main.GBCEAllShareIndex();

            double expectedValue = 100 * 100 * 60;

            expectedValue = Math.Pow(expectedValue, 1.0 / 3);

            //Assert
            Assert.AreEqual(result, expectedValue);
        }