public void EventHappensOnChangedValue() { var variable = new PlanVariable(string.Empty, 100, false, new List <Action>()); var eventHappened = false; variable.Subscripe(() => eventHappened = true); variable.Update(200); Assert.True(eventHappened); }
public void UnlockedPlanVariable(decimal startValue) { variable = new PlanVariable("spec", startValue, false, new List <System.Action>()); variable.Subscripe(() => eventSubscription = true); }