public void LoadOrder_WithValidPath_ReturnPriceList() { jpl = new JsonOrderLoader(@"..\..\..\Data\orders.json"); var list = jpl.LoadOrder(); Assert.That(list, Is.Not.Null); Assert.That(list, Is.Not.Empty); Assert.That(list, Is.InstanceOf(typeof(List <Order>))); }
public void LoadOrder_WithInvalidPath_ThrowException() { jpl = new JsonOrderLoader(@"..\..\..\Data\orders2.json"); Assert.Throws <FileNotFoundException>(() => jpl.LoadOrder()); }