public void TearDown() { try { // Re-fetch the company var company = _client.GetCompany(_testCompany.id, null); // Flag this company as inactive company.isActive = false; var disableResult = _client.UpdateCompany(company.id, company); // Assert that it succeeded Assert.NotNull(disableResult, "Should have been able to update this company"); Assert.False(disableResult.isActive, "Company should have been deactivated"); // Shouldn't fail } catch (Exception ex) { Assert.Fail("Exception in TearDown: " + ex); } }