public void ThenTheyShouldSeeASprint_EditingFailureMessage() { var theActor = stage.GetTheActorInTheSpotlight(); Then(theActor).ShouldSee(TheVisibility.Of(EditSprint.EditFailureMessage)) .Should() .BeTrue("the message should be visible"); }
public void ThenTheyShouldSeeACommentEditingFailureMessage() { var theActor = stage.GetTheActorInTheSpotlight(); Then(theActor).ShouldSee(TheVisibility.Of(EditComment.EditCommentFailureMessage)) .Should() .BeTrue(because: "The failure message should be shown"); }
public void ThenTheyShouldSeeACreateSprintFailureMessage() { var theActor = stage.GetTheActorInTheSpotlight(); Then(theActor).ShouldSee(TheVisibility.Of(CreateSprint.FailureMessage)) .Should() .BeTrue(because: "the sprint should not have been created"); }
protected override void PerformAs(IPerformer actor) { var tickets = actor.Perform(FindTickets.WithTheTitle(title)); tickets.Elements.Should().NotBeEmpty("At least one ticket must exist"); actor.Perform(TheVisibility.Of(tickets)) .Should() .BeTrue("The ticket must visible."); }
protected override void PerformAs(IPerformer actor) { actor.Perform(TheVisibility.Of(LoginPage.LoginFailureMessage)) .Should() .BeTrue("The failure message should be displayed on the page"); }
protected override void PerformAs(IPerformer actor) { actor.Perform(TheVisibility.Of(HeaderLoginLogoutWidget.OnAnyPage.CurrentLoginUsername)) .Should() .BeFalse($"{actor.Name} should not be logged in, so they should not see a logged-in username"); }