Trying to get pregnant

I’ve come to conclusion me or my boyfriend is infertile what are some ways to figure that out so we can get pregnant