public void RemoveStock() { // Arrange stockMarket = new StockMarket(); PrepareMockDataToStockMarket(); // Act List <Stock> stocks = stockMarket.GetStocks(); Stock google = stocks[0]; Stock myExpensiveStocks = stocks[1]; stockMarket.RemoveStock(google); // Assert Assert.AreEqual(stockMarket.GetStocks()[0], myExpensiveStocks); }