Two days til AF

Has anyone felt pregnant, but tested two days before AF and it was a BFN, to missing your period and testing positive after AF was supposed to arrive? I'm starting to feel discouraged and like I'm out already this month...