Inheritance: Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
コード例 #1
0
 private static void ApplyMigration(DbMigrator migrator, string migrationId)
 {
     try
     {
         migrator.Update(migrationId);
     }
     catch (Exception ex)
     {
         var exceptionToThrow = new MigrationAssertFailedExecption(
             migrationId,
             $"Failed to migrate to {migrationId}; see inner exception for details.",
             ex);
         throw exceptionToThrow;
     }
 }
コード例 #2
0
 private static void ApplyMigration(DbMigrator migrator, string migrationId)
 {
     try
     {
         migrator.Update(migrationId);
     }
     catch (Exception ex)
     {
         var exceptionToThrow = new MigrationAssertFailedExecption(
             migrationId,
             $"Failed to migrate to {migrationId}; see inner exception for details.",
             ex);
         throw exceptionToThrow;
     }
 }