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);
        }
Beispiel #2
0
 public void UnlockedPlanVariable(decimal startValue)
 {
     variable = new PlanVariable("spec", startValue, false, new List <System.Action>());
     variable.Subscripe(() => eventSubscription = true);
 }