예제 #1
0
        public void BeAbleToReturnAUserControl()
        {
            XMLProductImporter importer = new XMLProductImporter();

            UserControl importerUserControl = importer.GetUIForNeededAttributes();

            Assert.IsNotNull(importerUserControl);
        }
예제 #2
0
        public void BeAbleToReturnImportedProducts()
        {
            XMLProductImporter importer = new XMLProductImporter();

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

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