Esempio n. 1
0
        public void BeAbleToReturnAUserControl()
        {
            JSONProductImporter importer = new JSONProductImporter();

            UserControl importerUserControl = importer.GetUIForNeededAttributes();

            Assert.IsNotNull(importerUserControl);
        }
Esempio n. 2
0
        public void BeAbleToReturnImportedProducts()
        {
            JSONProductImporter importer = new JSONProductImporter();

            ICollection <Product> testProducts = importer.ImportProducts("products.json");

            Assert.IsNotNull(testProducts);
            Assert.IsTrue(testProducts.Count == 1);
        }