예제 #1
0
        public void PassProductCatalogLoadFullTest()
        {
            try
            {
                var virtualCatalog = CreateProductCatalog();
                CreateProductCatalogFile(virtualCatalog);
                var dataContext = new JSonFileDataContext(productCatalogPath, knownTypes);

                var productCatalog = new ProductCatalog(dataContext);

                foreach (var key in virtualCatalog.Keys)
                {
                    Assert.IsNotNull(productCatalog.ItemExists(key));
                }
            }
            catch (Exception ex)
            {
                Assert.Fail(ex.ToString());
            }
        }