Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Test_SetStockPrice_NewPrice()
- {
- string stockName = "IBM";
- decimal oldPrice = 10m;
- _stockExchange.ListStock(stockName, 1000000, oldPrice, new DateTime(2012, 1, 10, 15, 22, 00));
- decimal newPrice = 20m;
- _stockExchange.SetStockPrice(stockName, new DateTime(2012, 1, 10, 15, 40, 00), newPrice);
- Assert.AreEqual(newPrice, _stockExchange.GetStockPrice(stockName, new DateTime(2012, 1, 10, 15, 50, 0, 0)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement