This will also work:

    expect(fileName(tempFile), tempFileName);

It has the advantage that when it fails, the error from the test framework will have a better message (not just `expected true`, but `expected foo, got bar`.