public static void DeleteFailTest <T>(ICremaHost cremaHost, ITableCategory category, Authentication authentication) where T : Exception { cremaHost.Dispatcher.Invoke(() => { try { category.Delete(authentication); Assert.Fail("Delete"); } catch (T) { } }); }
public static void DeleteFailTest <T>(ITableCategory category, Authentication authentication) where T : Exception { Assert.AreNotEqual(null, category.Parent); category.Dispatcher.Invoke(() => { try { category.Delete(authentication); Assert.Fail("DeleteFailTest"); } catch (T) { } }); }
public void Delete() { category.Delete(authentication); }