The detection and reconstruction of wavefront by Lateral Shear Interferometer (LSI) and Hartmann Wavefront Sensor (HWS) have been deduced analogically and simulated numerically. It is shown that the ability of wavefront reconstruction of LSI is better than HWS, for the indirect sampling information of wavefront with LSI is more than HWS. And to increase sampling, LSI is easier than HWS.