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)
         {
         }
     });
 }
Exemplo n.º 2
0
 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);
 }