An executable version of a GraspSchema which applies its calculations
Exemple #1
0
        protected override void Given()
        {
            _variable = new Variable("Grasp", "Test", typeof(int));

            _schema = new GraspSchema(new[] { _variable }, Enumerable.Empty<Calculation>());

            _initialState = A.Fake<IRuntimeSnapshot>();

            _initialValue = 1;

            A.CallTo(() => _initialState.GetValue(_variable)).Returns(_initialValue);

            _executable = new GraspExecutable(_schema, A.Fake<ICalculator>());
        }
 protected override void When()
 {
     _executable = _schema.Compile();
 }
 protected override void When()
 {
     _executable = new GraspExecutable(_schema, _calculator);
 }