Skip to content

Instantly share code, notes, and snippets.

@MarcoNicolodi
Created January 13, 2019 20:46
Show Gist options
  • Save MarcoNicolodi/10f440287d254f924db4047aa0da9d09 to your computer and use it in GitHub Desktop.
Save MarcoNicolodi/10f440287d254f924db4047aa0da9d09 to your computer and use it in GitHub Desktop.
Flaky unit test suite
revision.Changes.Should().Be(requestPayload.Changes, "because this is what changed in the revision");
elaborationResult.Approved.Should().BeTrue("because we just completed the elaboration stage");
revision.Stages.Count.Should().Be(2, "because the next stage has been created");
createdStage.Order.Should().Be(2, "because it happens after the elaboration");
createdStage.StageId.Should().Be(StageMother.ApprovalStageid, "because the next stage is the approval stage");
createdStageResult.ResponsibleId.Should().Be(DocumentMother.ApprovalResponsibleId, "because its the responsible for the approval stage of this document");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment