In XUnit you can put your setup in the `ctor` and the teardown in a `Dispose` method (implement the `IDisposable` interface).

This is better than doing it manually because the code is currently missing a try-catch. If a test fails, dirty files will be left on disk.