Wasn't this the White House strategy? They were doing daily rapid antigen tests, and have had several outbreaks.
So you can't just test. You also need to avoid contact with other people, unless they have also tested negative. The White House clearly was not doing that. Even if they had, the tests are not totally reliable.
Given the number of people who come and go from the White House on a regular basis, it's kind of a surprise they didn't have an outbreak earlier than they did.