public void Then_Operation_Was_Sent() { MockControlLine .Received() .SendOperation(Arg.Is <OperationDto>( operation => operation.Device == 2 && operation.Operation == 2 && operation.Params.SequenceEqual(new[] { 120 }) )); MockControlLine .Received(1) .SendOperation(Arg.Any <OperationDto>()); }
public void Then_The_Valid_Operation_Was_Called() { MockControlLine .Received() .SendOperation(Arg.Is <OperationDto>( x => x.Device == 1 && x.Operation == 1 && x.Params.SequenceEqual(new int[] { }) )); MockControlLine .Received(1) .SendOperation(Arg.Any <OperationDto>()); }