public async Task SuccessfulLogin_IsSuccessful() { var client = new MegaClient(TestData.Current.Email1, TestData.Current.Password1); using (var connecting = new DebugFeedbackChannel("Test")) await client.EnsureConnectedAsync(connecting); }
public async Task AccountListLoad_DoesNotCauseApocalypse() { using (var feedback = new DebugFeedbackChannel("Test")) { using (var initializing = feedback.BeginSubOperation("InitializeData")) await TestData.Current.BringToInitialState(initializing); var client = new MegaClient(TestData.Current.Email1, TestData.Current.Password1); await client.EnsureConnectedAsync(feedback); await client.GetContactListSnapshotAsync(feedback); } }
public async Task TestAccountInitialization_IsSuccessful() { using (var connecting = new DebugFeedbackChannel("Test")) { using (var initializing = connecting.BeginSubOperation("InitializeData")) { await TestData.Current.BringToInitialState(initializing); var client = new MegaClient(TestData.Current.Email1, TestData.Current.Password1); await client.EnsureConnectedAsync(connecting); } } }