Test: the provider-conflict words say to prove that account again after unlinking; an operator settle has its own status words (red)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8bcd6d67e9
commit
11fc87c8e4
2 changed files with 22 additions and 0 deletions
|
|
@ -17,6 +17,17 @@ public sealed class MergePreviewTests
|
|||
private static MergePlan Plan(IEnumerable<MergePlanEntry> entries, IReadOnlyDictionary<string, int>? left = null) =>
|
||||
new([], [.. entries], left ?? new Dictionary<string, int>());
|
||||
|
||||
[Fact]
|
||||
public void The_provider_conflict_names_the_providers_and_says_to_prove_that_side_again_after_unlinking()
|
||||
{
|
||||
// The conflict is read from the login list held with the proofs, which unlinking does not change until the member proves again.
|
||||
var words = MergePreview.ProviderConflict(["Discord", "Twitch"]);
|
||||
|
||||
Assert.Contains("Discord and Twitch", words);
|
||||
Assert.Contains("Unlink", words);
|
||||
Assert.Contains("prove that account again", words);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Every_block_code_has_its_own_words_and_none_names_an_account()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -43,6 +43,17 @@ public sealed class MergeWordingTests
|
|||
[InlineData("malformed or mismatched receipt")]
|
||||
public void Every_outcome_the_saga_stores_has_words(string outcome) => Assert.False(string.IsNullOrWhiteSpace(MergeWording.Outcome(outcome)), outcome);
|
||||
|
||||
[Theory]
|
||||
[InlineData("operator_failed", "ended")]
|
||||
[InlineData("undo_operator_abandoned", "merge stands")]
|
||||
public void An_operators_settle_has_its_own_words_not_the_retry_line(string outcome, string says)
|
||||
{
|
||||
var words = MergeWording.Outcome(outcome);
|
||||
|
||||
Assert.Contains(says, words);
|
||||
Assert.DoesNotContain("try again", words);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("HTTP 502")]
|
||||
[InlineData("HEIMDALL FREE TEXT")]
|
||||
|
|
|
|||
Loading…
Reference in a new issue