void Ex02()
        {
            When("the edit is completed", () => EditContent.CompleteEdit());
            AssertEditing(false);

            AssertEventRaised(false, false, false);
        }
        void Ex01()
        {
            When("the edit is started", () => DisplayContent.StartEdit());
            AssertEditing(true);

            When("the edit is completed", () => EditContent.CompleteEdit());
            AssertEditing(false);

            AssertEventRaised(true, true, false);
        }
コード例 #3
0
 void Ex01()
 {
     When("the edit is completed", () => EditContent.CompleteEdit());
     Then("the EditCompleted event should be raised", () => EditCompletedRaised);
     Then("the EditCanceled event should not be raised", () => !EditCanceledRaised);
 }