Quasiequilibrium sequences of synchronized and irrotational binary neutron stars in general relativity. I. Method and tests — arXiv2