An executable version of a GraspSchema which applies its calculations
Ejemplo n.º 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>());
        }
Ejemplo n.º 2
0
 protected override void When()
 {
     _executable = _schema.Compile();
 }
Ejemplo n.º 3
0
 protected override void When()
 {
     _executable = new GraspExecutable(_schema, _calculator);
 }