コード例 #1
0
ファイル: SanityTests.cs プロジェクト: AIBrain/mega-client
		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);
		}
コード例 #2
0
ファイル: SanityTests.cs プロジェクト: AIBrain/mega-client
		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);
			}
		}
コード例 #3
0
ファイル: SanityTests.cs プロジェクト: AIBrain/mega-client
		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);
				}
			}
		}