public static void MyClassCleanup() { if (_tempHandler != null) { WebCallResult res = _tempHandler.Delete(); Assert.IsTrue(res.Success, "Failed to delete temporary directory handler on cleanup."); } }