public async Task TryToBreakOutDeleteDirectory() { var repo = new FileRepository("TestFiles", new FileVerifier()); await Assert.ThrowsAsync <InvalidOperationException>(async() => await repo.DeleteDirectory("../file.txt")); }