예제 #1
0
 public void checkPort_Result_II()
 {
     string[] stock      = new string[] { "GOOG-20,MS-10", "MS-10,GOOG-10" };
     double[] check      = new double[] { 500.0, 300.0 };
     double[] stockValue = PortfolioStock.splitFileData(stock);
     CollectionAssert.AreNotEqual(check, stockValue);
 }
예제 #2
0
 public void checkPort_Result()
 {
     string[] stockValue = new string[] { "GOOG-20,MS-10", "MS-10,GOOG-10" };
     double[] v          = new double[] { 1500.0, 1000.0 };
     double[] checkValue = PortfolioStock.splitFileData(stockValue);
     CollectionAssert.AreEqual(checkValue, stockValue);
 }
예제 #3
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);
        }
예제 #4
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);
        }