Пример #1
0
        public void LoadPayment_WithValidPath_ReturnPaymentList()
        {
            jpl = new JsonPaymentLoader(@"..\..\..\Data\payments.json");
            var list = jpl.LoadPayment();

            Assert.That(list, Is.Not.Null);
            Assert.That(list, Is.Not.Empty);
            Assert.That(list, Is.InstanceOf(typeof(List <Payment>)));
        }
Пример #2
0
 public void LoadPayment_WithInvalidPath_ThrowException()
 {
     jpl = new JsonPaymentLoader(@"..\..\..\Data\prices2.json");
     Assert.Throws <FileNotFoundException>(() => jpl.LoadPayment());
 }