示例#1
0
        public void ThenTheyShouldSeeASprint_EditingFailureMessage()
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).ShouldSee(TheVisibility.Of(EditSprint.EditFailureMessage))
            .Should()
            .BeTrue("the message should be visible");
        }
示例#2
0
        public void ThenTheyShouldSeeACommentEditingFailureMessage()
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).ShouldSee(TheVisibility.Of(EditComment.EditCommentFailureMessage))
            .Should()
            .BeTrue(because: "The failure message should be shown");
        }
示例#3
0
        public void ThenTheyShouldSeeACreateSprintFailureMessage()
        {
            var theActor = stage.GetTheActorInTheSpotlight();

            Then(theActor).ShouldSee(TheVisibility.Of(CreateSprint.FailureMessage))
            .Should()
            .BeTrue(because: "the sprint should not have been created");
        }
示例#4
0
        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.");
        }
示例#5
0
 protected override void PerformAs(IPerformer actor)
 {
     actor.Perform(TheVisibility.Of(LoginPage.LoginFailureMessage))
     .Should()
     .BeTrue("The failure message should be displayed on the page");
 }
示例#6
0
 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");
 }