Beispiel #1
0
        public void TestGetMaxProfitAlternateCase3()
        {
            // Arrange
            StocksData();

            // Act
            var maxProfit = Stocks.GetMaxProfitAlternate(stockPricesYesterdayCase3);

            // Assert
        }
Beispiel #2
0
        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");
        }