Esempio n. 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}");
                });
            }
Esempio n. 2
0
 void UnPoison(OperationBase op)
 {
     op.Poison(device, () => {});
 }
Esempio n. 3
0
 void UnPoison(OperationBase op)
 {
     op.Poison(device, () => {});
 }
Esempio n. 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}");
                });
            }