void Ex03()
        {
            When("the IsEditable is set to false", () => EditableContent.IsEditable.Value = false);
            When("the edit is started", () => DisplayContent.StartEdit());
            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);
        }
        void Ex02()
        {
            When("the edit is started", () => DisplayContent.StartEdit());
            AssertEditing(true);

            ClearEventRaised();

            When("the edit is started", () => DisplayContent.StartEdit());
            AssertEditing(true);

            AssertEventRaised(false, false, false);
        }
Пример #4
0
 void Ex02()
 {
     When("the IsEditable property is set to false", () => DisplayContent.IsEditable.Value = false);
     When("the edit is started", () => DisplayContent.StartEdit());
     Then("the EditStarted event should not be raised", () => !EditStartedRaised);
 }
Пример #5
0
 void Ex01()
 {
     When("the IsEditable property is set to true", () => DisplayContent.IsEditable.Value = true);
     When("the edit is started", () => DisplayContent.StartEdit());
     Then("the EditStarted event should be raised", () => EditStartedRaised);
 }