public void TestingMaxProfit(int[] nums, int expected) { var stocks = new Stocks(); var result = stocks.MaxProfit(nums); Assert.AreEqual(expected, result); }