Exemple #1
0
        public void checkPort_II()
        {
            string[] getFileData = PortfolioStock.getStockFile(@"C:\Users\vinothkanth\Desktop\PortFolioData.txt");

            string[] getSingleLine = PortfolioStock.fetchSingleLine(getFileData);

            double[] getStockValue = PortfolioStock.splitFileData(getSingleLine);

            double[] stockValue = new double[] { 18500, 6000, 2000 };
            Assert.AreNotEqual(stockValue, getStockValue);
        }
Exemple #2
0
        public void checkPortResult()
        {
            string[] getFileData = PortfolioStock.getStockFile(@"C:\Users\vinothkanth\Desktop\PortFolioData.txt");

            string[] getSingleLine = PortfolioStock.fetchSingleLine(getFileData);

            double[] getStockValue = PortfolioStock.splitFileData(getSingleLine);

            double[] stockValue = new double[3];
            stockValue[0] = 3000.0;
            stockValue[1] = 8000.0;
            stockValue[2] = 13500.0;
            CollectionAssert.AreEqual(stockValue, getStockValue);
        }