public void TestGetMaxProfitAlternateCase3() { // Arrange StocksData(); // Act var maxProfit = Stocks.GetMaxProfitAlternate(stockPricesYesterdayCase3); // Assert }
public void TestGetMaxProfitAlternateCase2() { // Arrange StocksData(); // Act var maxProfit = Stocks.GetMaxProfitAlternate(stockPricesYesterdayCase2); // Assert - This returns negative profit Assert.AreEqual(0, maxProfit, "Incorrect Profit is being returned"); }