Ejemplo n.º 1
0
        public void LoadPrice_WithValidPath_ReturnPriceList()
        {
            jpl = new JsonPriceLoader(@"..\..\..\Data\prices.json");
            var list = jpl.LoadPrice();

            Assert.That(list, Is.Not.Null);
            Assert.That(list, Is.Not.Empty);
            Assert.That(list, Is.InstanceOf(typeof(List <Price>)));
        }
Ejemplo n.º 2
0
 public void LoadPrice_WithInvalidPath_ThrowException()
 {
     jpl = new JsonPriceLoader(@"..\..\..\Data\prices2.json");
     Assert.Throws <FileNotFoundException>(() => jpl.LoadPrice());
 }