public void FailSavePromotionCatalogTest() { try { var dict = new Dictionary <Guid, IPromotion>(); var dataContext = new JSonFileDataContext("", knownTypes); dataContext.SaveData(dict); Assert.Fail("File Path is invalid"); } catch (Exception ex) { Assert.IsTrue(ex != null); } }
void CreatePromotionCatalogFile(IDictionary <Guid, IPromotion> dict) { var dataContext = new JSonFileDataContext(promotionCatalogPath, knownTypes); dataContext.SaveData(dict); }