Ejemplo n.º 1
0
        public void BeAbleToReturnAUserControl()
        {
            XMLProductImporter importer = new XMLProductImporter();

            UserControl importerUserControl = importer.GetUIForNeededAttributes();

            Assert.IsNotNull(importerUserControl);
        }
Ejemplo n.º 2
0
        public void BeAbleToReturnImportedProducts()
        {
            XMLProductImporter importer = new XMLProductImporter();

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

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