public async Task Async_DeleteCollection_Success() { var client = new KeenClient(SettingsEnv); if (UseMocks) { client.EventCollection = new EventCollectionMock(SettingsEnv, deleteCollection: new Action <string, IProjectSettings>((c, p) => { if ((p == SettingsEnv) && (c == "DeleteColTest")) { return; } else { throw new Exception("Unexpected value"); } })); } await client.DeleteCollectionAsync("DeleteColTest"); }