You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Action UpdatedHandler = () => { };
var model = FakeData.GetVariable().Generate();
var cut = ctx.RenderComponent<VariableData>(parameters => parameters
.Add(p => p.Updated, UpdatedHandler)
.Add(p => p.Variable, model)
);
cut.FindByTag("form").Submit();
Assert.AreEqual(true, cut.Instance.Updated.HasDelegate);
I know I can have any attribute and fill it with a value and test it, but if I don't want to go that way.
is there a way to test if an event has fired? in this case Update event.
Activity