The scaling laws of third-order structure functions for isotropic, homogeneous, and incompressible magnetohydrodynamic ͑MHD͒ turbulence relate the observable structure function with the energy dissipation rate. Recently ͓Wan et al. Phys. Plasmas 16, 090703 ͑2009͔͒, the theory was extended to the case in which a constant velocity shear is present, motivated by the application of the third-order law to the solar wind. We use direct numerical simulations of two-dimensional MHD with shear to confirm this new generalization of the theory. The presence of the shear effect broadens the circumstances in which the law can be applied. Important implications for laboratory and space plasmas are discussed.