void Ex02() { When("the edit is canceled", () => EditContent.CancelEdit()); AssertEditing(false); AssertEventRaised(false, false, false); }
void Ex01() { When("the edit is started", () => DisplayContent.StartEdit()); AssertEditing(true); When("the edit is canceled", () => EditContent.CancelEdit()); AssertEditing(false); AssertEventRaised(true, false, true); }
void Ex02() { When("the edit is canceled", () => EditContent.CancelEdit()); Then("the EditCompleted event should not be raised", () => !EditCompletedRaised); Then("the EditCanceled event should be raised", () => EditCanceledRaised); }