Ejemplo n.º 1
0
        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>)));
        }
Ejemplo n.º 2
0
 public void LoadOrder_WithInvalidPath_ThrowException()
 {
     jpl = new JsonOrderLoader(@"..\..\..\Data\orders2.json");
     Assert.Throws <FileNotFoundException>(() => jpl.LoadOrder());
 }