They can indeed work together. Both approaches involve writing tests prior to production code. The tests are designed to cover different aspects of the development cycle. They complement each other well.