コード例 #1
0
        public void BeAbleToReturnAUserControl()
        {
            JSONProductImporter importer = new JSONProductImporter();

            UserControl importerUserControl = importer.GetUIForNeededAttributes();

            Assert.IsNotNull(importerUserControl);
        }
コード例 #2
0
        public void BeAbleToReturnImportedProducts()
        {
            JSONProductImporter importer = new JSONProductImporter();

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

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