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