Example #1
0
            void Poison(OperationBase op)
            {
                op.Poison(device, () =>
                {
                    if (expected == null)
                    {
                        throw new InvalidOperationException(
                            $"Executed an unexpected action of type {op.Operation} after the last step");
                    }

                    throw new InvalidOperationException(
                        $"Executed an unexpected action of type {op.Operation} expecting a {expected.Operation} at step {index}");
                });
            }
Example #2
0
 void UnPoison(OperationBase op)
 {
     op.Poison(device, () => {});
 }
Example #3
0
 void UnPoison(OperationBase op)
 {
     op.Poison(device, () => {});
 }
Example #4
0
            void Poison(OperationBase op)
            {
                op.Poison(device, () =>
                {
                    if (expected == null)
                    {
                        throw new InvalidOperationException(
                            $"Executed an unexpected action of type {op.Operation} after the last step");
                    }

                    throw new InvalidOperationException(
                        $"Executed an unexpected action of type {op.Operation} expecting a {expected.Operation} at step {index}");
                });
            }