Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
This is failing due to Steve and I's changes passing in the night.
  • Loading branch information
Ryan Nowak authored and rynowak committed Apr 10, 2018
1 parent 3bbe9f5 commit 32ad47b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ public void RecognizesAttributeEventHandlerValuesChanged()
UIEventHandler removedHandler = _ => { };
UIEventHandler addedHandler = _ => { };
oldTree.OpenElement(0, "My element");
oldTree.AddAttribute(1, "will remain", retainedHandler);
oldTree.AddAttribute(2, "will change", removedHandler);
oldTree.AddAttribute(1, "onfoo", retainedHandler);
oldTree.AddAttribute(2, "onbar", removedHandler);
oldTree.CloseElement();
newTree.OpenElement(0, "My element");
newTree.AddAttribute(1, "will remain", retainedHandler);
newTree.AddAttribute(2, "will change", addedHandler);
newTree.AddAttribute(1, "onfoo", retainedHandler);
newTree.AddAttribute(2, "onbar", addedHandler);
newTree.CloseElement();

// Act
Expand All @@ -444,7 +444,7 @@ public void RecognizesAttributeEventHandlerValuesChanged()
AssertEdit(entry, RenderTreeEditType.SetAttribute, 0);
Assert.Equal(0, entry.ReferenceFrameIndex);
});
AssertFrame.Attribute(referenceFrames[0], "will change", addedHandler);
AssertFrame.Attribute(referenceFrames[0], "onbar", addedHandler);
Assert.NotEqual(0, removedEventHandlerFrame.AttributeEventHandlerId);
Assert.Equal(
new[] { removedEventHandlerFrame.AttributeEventHandlerId },
Expand Down

0 comments on commit 32ad47b

Please sign in to comment.