Skip to content

Commit

Permalink
Write test errors to console
Browse files Browse the repository at this point in the history
  • Loading branch information
evandixon committed Oct 12, 2018
1 parent 6994889 commit ed699f3
Showing 1 changed file with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,26 @@ public async Task StarterModBuildsSuccessfully()
{
// This was originally a SpecFlow test, but I abandoned SpecFlow, so this is the minimum-effort way of replicating it.

// Given
await GivenIHaveADSModSolution();
await IInitializeTheSolutionWithAPSMDUSROM("PSMD-US.3ds");
await GivenTheSolutionHasAPsmdStarterModProject();
TheModpackProjectWillOutputADecryptedROM();

// When
await WhenIBuildTheProject();
await WhenIUnpackTheResultingROM();

// Then
await ThePersonalityTestShouldHaveBeenProperlyPatched();
try
{
// Given
await GivenIHaveADSModSolution();
await IInitializeTheSolutionWithAPSMDUSROM("PSMD-US.3ds");
await GivenTheSolutionHasAPsmdStarterModProject();
TheModpackProjectWillOutputADecryptedROM();

// When
await WhenIBuildTheProject();
await WhenIUnpackTheResultingROM();

// Then
await ThePersonalityTestShouldHaveBeenProperlyPatched();
}
catch (Exception ex)
{
Console.WriteLine("Encountered exception: " + ex.ToString());
throw;
}
}
}
}

0 comments on commit ed699f3

Please sign in to comment.