@@ -248,22 +248,6 @@ public static IEnumerable<object[]> MethodsWithMandatoryLogin()
248248 yield return new object [ ] { ( Action < IMegaApiClient > ) ( x => x . GetAccountInformation ( ) ) } ;
249249 }
250250
251- [ Theory , MemberData ( nameof ( GetCredentials ) , false ) ]
252- public void GetAccountInformation_AuthenticatedUser_Succeeds ( string email , string password )
253- {
254- Context . Client . Login ( email , password ) ;
255-
256- var authenticatedTestContext = new AuthenticatedTestContext ( ) ;
257- var protectedNodes = authenticatedTestContext . ProtectedNodes ;
258- SanitizeStorage ( protectedNodes ) ;
259-
260- var accountInformation = Context . Client . GetAccountInformation ( ) ;
261-
262- Assert . NotNull ( accountInformation ) ;
263- Assert . Equal ( AuthenticatedTestContext . Inputs . TotalQuota , accountInformation . TotalQuota ) ;
264- Assert . Equal ( AuthenticatedTestContext . Inputs . SharedFile . Size + AuthenticatedTestContext . Inputs . SharedFileUpSideDown . Size + AuthenticatedTestContext . Inputs . SampleZipFile . Size , accountInformation . UsedQuota ) ;
265- }
266-
267251 [ Theory , MemberData ( nameof ( GetCredentials ) , false ) ]
268252 public void GetSessionHistory_AuthenticatedUser_Succeeds ( string email , string password )
269253 {
@@ -278,17 +262,5 @@ public void GetSessionHistory_AuthenticatedUser_Succeeds(string email, string pa
278262 Assert . Equal ( DateTime . UtcNow , first . LoginTime . ToUniversalTime ( ) , TimeSpan . FromSeconds ( 30 ) ) ;
279263 Assert . Equal ( DateTime . UtcNow , first . LastSeenTime . ToUniversalTime ( ) , TimeSpan . FromSeconds ( 30 ) ) ;
280264 }
281-
282- [ Fact ]
283- public void GetAccountInformation_AnonymousUser_Succeeds ( )
284- {
285- Context . Client . LoginAnonymous ( ) ;
286-
287- var accountInformation = Context . Client . GetAccountInformation ( ) ;
288-
289- Assert . NotNull ( accountInformation ) ;
290- Assert . Equal ( AuthenticatedTestContext . Inputs . TotalQuota , accountInformation . TotalQuota ) ;
291- Assert . Equal ( 0 , accountInformation . UsedQuota ) ;
292- }
293265 }
294266}
0 commit comments