Advertisement
Guest User

aaaaerfwfwe

a guest
Dec 21st, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. public void Test_SetStockPrice_NewPrice()
  2. {
  3. string stockName = "IBM";
  4. decimal oldPrice = 10m;
  5. _stockExchange.ListStock(stockName, 1000000, oldPrice, new DateTime(2012, 1, 10, 15, 22, 00));
  6. decimal newPrice = 20m;
  7. _stockExchange.SetStockPrice(stockName, new DateTime(2012, 1, 10, 15, 40, 00), newPrice);
  8.  
  9. Assert.AreEqual(newPrice, _stockExchange.GetStockPrice(stockName, new DateTime(2012, 1, 10, 15, 50, 0, 0)));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement