UnitTestScribe report -
Google-api-dotnet-client

Methods
Google.Apis.Auth.OAuth2.BearerTokenTests.AuthorizationHeaderAccessMethod_GetAccessToken()
Google.Apis.Auth.OAuth2.BearerTokenTests.AuthorizationHeaderAccessMethod_Intercept()
Google.Apis.Auth.OAuth2.BearerTokenTests.AuthorizationHeaderAccessMethod_InterceptOverride()
Google.Apis.Auth.OAuth2.BearerTokenTests.QueryParameterAccessMethod_GetAccessToken()
Google.Apis.Auth.OAuth2.BearerTokenTests.QueryParameterAccessMethod_Intercept()
Google.Apis.Auth.OAuth2.BearerTokenTests.QueryParameterAccessMethod_Intercept_WithQueryParameters()
Google.Apis.Auth.OAuth2.ComputeCredentialTests.IsRunningOnComputeEngine()
Google.Apis.Auth.OAuth2.ComputeCredentialTests.IsRunningOnComputeEngine_ResultIsCached()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_BrokenPkcs8Key()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_InvalidCredentialFile()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_MissingCredentialFile()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_NoCredentialFiles()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_ServiceAccountCredential_FromEnvironmentVariable()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_UserCredential_FromEnvironmentVariable()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_UserCredential_FromWellKnownFileLocation()
Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_UserCredential_FromWellKnownFileLocationUnix()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.LoadTokenAsync_NoDataStore()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.LoadTokenAsync_NullResponse()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.LoadTokenAsync_TokenResponse()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestConstructor_ArgumentException()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestConstructor_DefaultValues()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestCreateAuthorizationCodeRequest()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestExchangeCodeForTokenAsync()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_AuthorizationCodeRequest()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_AuthorizationCodeRequest_Error()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_RefreshTokenRequest()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_RefreshTokenRequest_Error()
Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestRefreshTokenAsync()
Google.Apis.Auth.OAuth2.GoogleCredentialTests.FromStream_ServiceAccountCredential()
Google.Apis.Auth.OAuth2.GoogleCredentialTests.FromStream_ServiceAccountCredential_GetJwtAccessToken()
Google.Apis.Auth.OAuth2.GoogleCredentialTests.FromStream_UserCredential()
Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestBuild()
Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestBuild_DefaultValues()
Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestBuild_EscapeValues()
Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestConstructor()
Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequestTests.TestConstructor()
Google.Apis.Auth.OAuth2.Requests.GoogleAuthorizationCodeRequestUrlTest.TestConstructor()
Google.Apis.Auth.OAuth2.Requests.RefreshTokenRequestTests.TestConstructor()
Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrlTests.TestConstructor_Default()
Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrlTests.TestConstructor_Dictionary()
Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrlTests.TestConstructor_Query()
Google.Apis.Auth.OAuth2.Responses.TokenResponseTests.IsExpired()
Google.Apis.Auth.OAuth2.Responses.TokenResponseTests.TestConstructor()
Google.Apis.Auth.OAuth2.Responses.TokenResponseTests.TestSerializer()
Google.Apis.Tests.Apis.Download.MediaDownloaderTest.Download_MultipleChunks()
Google.Apis.Tests.Apis.Download.MediaDownloaderTest.Download_SingleChunk()
Google.Apis.Tests.Apis.Download.MediaDownloaderTest.Download_SingleChunk_UriContainsQueryParameters()
Google.Apis.Tests.Apis.Download.MediaDownloaderTest.DownloadAsync_Cancel()
Google.Apis.Tests.Apis.Download.MediaDownloaderTest.DownloadAsync_MultipleChunks()
Google.Apis.Tests.Apis.Download.MediaDownloaderTest.DownloadAsync_SingleChunk()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_AbnormalResponse_WithoutUnsuccessfulReponseHandler()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_DifferentHandler()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_DontThrow()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_Throw_Max1Hour()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_Throw_Max200Milliseconds()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_Throw_Max2Minutes()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_ThrowCanceledException()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_Cancel()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_OK()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_ServiceUnavailable_Max10Hours()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_ServiceUnavailable_Max5Seconds()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExceptionHandler_SuccessReponse()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExceptionHandler_ThrowException_DontHandle()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExceptionHandler_ThrowException_Handle()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExecuteInterceptor()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExecuteInterceptor_AbnormalResponse()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExecuteInterceptor_AbnormalResponse_UnsuccessfulResponseHandler()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_Redirect()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_Redirect_FollowRedirectFalse()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ThrowException_WithoutExceptionHandler()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_UnsuccessfulReponseHanlder_AbnormalResponse_DifferentStatusCode()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_UnsuccessfulReponseHanlder_AbnormalResponse_SameStatusCode()
Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_UnsuccessfulReponseHanlder_SuccessfulReponse()
Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestGetPathQueryWithUrlOkayLengthByDefault()
Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestGetWithUrlOkayLengthByDefault()
Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestGetWithUrlTooLongByUserSpecified()
Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestNonGetWithUrlOkayLengthByDefault()
Google.Apis.Tests.Apis.Logging.NullLoggerTests.ConstructTest()
Google.Apis.Tests.Apis.Logging.NullLoggerTests.GetTypeTest()
Google.Apis.Tests.Apis.Logging.NullLoggerTests.SimpleLogTest()
Google.Apis.Tests.Apis.Requests.BatchRequestTest.CreateIndividualRequest_Test()
Google.Apis.Tests.Apis.Requests.BatchRequestTest.CreateOuterRequestContent_Test()
Google.Apis.Tests.Apis.Requests.BatchRequestTest.CreateRequestContentString_Test()
Google.Apis.Tests.Apis.Requests.BatchRequestTest.ExecuteAsync_Error_Test()
Google.Apis.Tests.Apis.Requests.BatchRequestTest.ExecuteAsync_NoCallback_Test()
Google.Apis.Tests.Apis.Requests.BatchRequestTest.ExecuteAsync_Test()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_DeveloperKey()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_DeveloperKey_RequiresEscape()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_ETag()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_PathParameters()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_QueryDateParameter()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_QueryParameterIsMissing()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_QueryParameters()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_SupportedMethods()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_UnsupportedMethods()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_DisposeService()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_Error()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_GZipDisabled()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_GZipEnabled()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_ThrowException_WithBackOff()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_ThrowException_WithoutBackOff()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_UnicodeCharacters()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsStream()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsStreamAsync()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_Cancel()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_Error()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_GZipDisabled()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_GZipEnabled()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_Simultaneously()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_ThrowException_WithBackOff()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_ThrowException_WithoutBackOff()
Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.GetDefaultETagActionTest()
Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.ConstructTest()
Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.DuplicateTest()
Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.FromDictionaryTest()
Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.FromQueryStringTest()
Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.FromQueryStringTest_Invalid()
Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.MultipleAddTest()
Google.Apis.Tests.Apis.Requests.ParameterValidatorTest.ValidateRegexEmptyNeedsDataTest()
Google.Apis.Tests.Apis.Requests.ParameterValidatorTest.ValidateRegexTest()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestBasePlusPathMath()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestBasicWebRequest()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestInvalidPathParameters()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestMultipleQueryParameter()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestMultipleQueryParameters()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestNullQueryParameters()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameter()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level1()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level2()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level3()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level4()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameterWithUrlEncode()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPostWebRequest()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestQueryAndPathParameters()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestQueryParameterWithUrlEncode()
Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestSingleQueryParameter()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.Constructor_DefaultValues()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestDeserialization_WithDataWrapping()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestDeserialization_WithoutDataWrapping()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestDeserializationString()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestErrorDeserialization()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestGetWithUrlMaxLengthDisabled()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestGetWithUrlTooLongByDefault()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestSerialization_WithDataWrapping()
Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestSerialization_WithoutDataWrapping()
Google.Apis.Tests.Apis.Util.UtilitiesTest.ThrowIfNullTest()
Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.Constructor_InvalidValue()
Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.GetNextBackOff_InvalidValue()
Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.GetNextBackOff_MaxNumRetries()
Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.GetNextBackOff_Retry1To15()
Google.Apis.Tests.Apis.Utils.RepeatableTest.CreateRepeatableTest()
Google.Apis.Tests.Apis.Utils.RepeatableTest.TestImplicitConversion()
Google.Apis.Tests.Apis.Utils.RepeatableTest.TestModifiedSource()
Google.Apis.Tests.Apis.Utils.RepeatableTest.TestRepeatedGet()
Google.Apis.Tests.Apis.Utils.StringValueAttributeTest.ConstructTest()
Google.Apis.Tests.ApplicationContextTests.GetLoggerDefaultTest()
Google.Apis.Tests.ApplicationContextTests.RegisterLoggerTest()
Google.Apis.Tests.GoogleApiExceptionTests.ConstructorFailTest()
Google.Apis.Tests.GoogleApiExceptionTests.ConstructorTest()
Google.Apis.Tests.GoogleApiExceptionTests.ThrowTest()
TestJSonReader.JSONReaderTest.ParseTest()
TestJSonReader.JSONTokenTest.JSONTokenConstructorTest()
1.  Google.Apis.Tests.ApplicationContextTests.GetLoggerDefaultTest

Code with line numbers

This unit test case method tests get logger default test .

This unit test case validates that:
(1) ApplicationContext.Logger is a instance of NullLogger.

2.  Google.Apis.Tests.ApplicationContextTests.RegisterLoggerTest

Code with line numbers

This unit test case method tests register logger test .

This unit test case validates that:
(1) ApplicationContext.Logger is a instance of NullLogger.

(2) The unit test does not throw an exception.

(3) The unit test throws an InvalidOperationException exception.

3.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestDeserialization_WithDataWrapping

Code with line numbers

This unit test case method tests deserialization with data wrapping.

This unit test case validates that:
(1) client.Serializer is a instance of NewtonsoftJsonSerializer.

4.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestDeserialization_WithoutDataWrapping

Code with line numbers

This unit test case method tests deserialization without data wrapping.

This unit test case validates that:
(1) client.Serializer is a instance of NewtonsoftJsonSerializer.

5.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestSerialization_WithDataWrapping

Code with line numbers

This unit test case method tests serialization with data wrapping.

This unit test case includes following focal methods:
(1) string result = client.SerializeObject(schema);(@line 139)
This focal method is related to assertions at line 140

This unit test case validates that:
(1) result is equal to Response.
   result is obtained from
   1) variable client through slicing path
   2) variable schema through slicing path.

6.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestSerialization_WithoutDataWrapping

Code with line numbers

This unit test case method tests serialization without data wrapping.

This unit test case includes following focal methods:
(1) string result = client.SerializeObject(schema);(@line 156)
This focal method is related to assertions at line 157

This unit test case validates that:
(1) result is equal to Response.
   result is obtained from
   1) variable client through slicing path
   2) variable schema through slicing path.

7.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestDeserializationString

Code with line numbers

This unit test case method tests deserialization string .

This unit test case includes following focal methods:
(1) string result = client.DeserializeResponse(response).Result;(@line 173)
This focal method is related to assertions at line 174

This unit test case validates that:
(1) result is equal to Response.
   result is obtained from
   1) variable client through slicing path.

8.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestErrorDeserialization

Code with line numbers

This unit test case method tests error deserialization .

This unit test case includes following focal methods:
(1) RequestError error = client.DeserializeError(response).Result;(@line 204)
This focal method is related to assertions at line 205, line 206, line 207

This unit test case validates that:
(1) error.Code is equal to 400.
   error is obtained from
   1) variable features through slicing path.

(2) error.Message is equal to "Required".
   error is obtained from
   1) variable features through slicing path.

(3) error.Errors.Count is equal to 1.
   error is obtained from
   1) variable features through slicing path.

9.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.Constructor_DefaultValues

Code with line numbers

This unit test case method tests handle constructor default values .

This unit test case validates that:
(1) service.HttpClient is not null.

(2) service.HttpClientInitializer is null.

(3) service.GZipEnabled is true.

(4) service.HttpClient.MessageHandler.UnsuccessfulResponseHandlers.Count is equal to 1

(5) service.HttpClient.MessageHandler.UnsuccessfulResponseHandlers[0] Is.InstanceOf(

(6) service.HttpClient.MessageHandler.ExecuteInterceptors.Count is equal to 1

(7) service.HttpClient.MessageHandler.ExecuteInterceptors[0] Is.InstanceOf(

10.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestGetWithUrlTooLongByDefault

Code with line numbers

This unit test case method tests get with url too long by default.

This unit test case validates that:
(1) requestUri.Length is equal to DefaultMaxUrlLength + 1
   requestUri is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(2) request.Method is equal to HttpMethod.Post
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(3) request.Headers.GetValues("X-HTTP-Method-Override").Single() is equal to "GET"
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(4) request.Content.Headers.ContentType is equal to new MediaTypeHeaderValue("application/x-www-form-urlencoded")
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(5) request.RequestUri is equal to new Uri(uri)
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(6) messageHandler.RequestContent is equal to query

11.  Google.Apis.Tests.Apis.Services.BaseClientServiceTest.TestGetWithUrlMaxLengthDisabled

Code with line numbers

This unit test case method tests get with url max length disabled.

This unit test case validates that:
(1) request.RequestUri.ToString().Length is equal to requestUri.Length
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(2) request.Method is equal to HttpMethod.Get
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(3) request.Headers.Contains("X-HTTP-Method-Override") Is.Fals
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(4) request.Content Is.Nul
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(5) request.RequestUri is equal to new Uri(requestUri)
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

12.  Google.Apis.Tests.Apis.Requests.BatchRequestTest.ExecuteAsync_Test

Code with line numbers

This unit test case method tests execute async test .

13.  Google.Apis.Tests.Apis.Requests.BatchRequestTest.ExecuteAsync_Error_Test

Code with line numbers

This unit test case method tests execute async error test .

14.  Google.Apis.Tests.Apis.Requests.BatchRequestTest.ExecuteAsync_NoCallback_Test

Code with line numbers

This unit test case method tests execute async no callback test .

15.  Google.Apis.Tests.Apis.Requests.BatchRequestTest.CreateOuterRequestContent_Test

Code with line numbers

This unit test case method tests create outer request content test .

This unit test case validates that:
(1) requestStr is equal to ExpectedContentMessage.Replace("BOUNDARY",boundary).
   requestStr is obtained from
   1) variable content through slicing path.

16.  Google.Apis.Tests.Apis.Requests.BatchRequestTest.CreateIndividualRequest_Test

Code with line numbers

This unit test case method tests create individual request test .

This unit test case validates that:
(1) requestStr is equal to expectedMessage.
   requestStr is obtained from
   1) variable request through slicing path.

17.  Google.Apis.Tests.Apis.Requests.BatchRequestTest.CreateRequestContentString_Test

Code with line numbers

This unit test case method tests create request content string test .

This unit test case validates that:
(1) requestStr is equal to expectedMessage.
   requestStr is obtained from
   1) variable request through slicing path.

18.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_Cancel

Code with line numbers

This unit test case method tests execute async cancel .

19.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_DisposeService

Code with line numbers

This unit test case method tests execute dispose service .

This unit test case validates that:
(1) The unit test throws an ObjectDisposedException exception.

20.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_GZipEnabled

Code with line numbers

This unit test case method tests execute g zip enabled .

21.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_GZipDisabled

Code with line numbers

This unit test case method tests execute g zip disabled .

22.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_GZipEnabled

Code with line numbers

This unit test case method tests execute async g zip enabled .

23.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_GZipDisabled

Code with line numbers

This unit test case method tests execute async g zip disabled .

24.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_UnicodeCharacters

Code with line numbers

This unit test case method tests execute unicode characters .

This unit test case includes following focal methods:
(1) var response = request.Execute();(@line 533)
This focal method is related to assertions at line 538

This unit test case validates that:
(1) handler.Calls is equal to 1
   handler is obtained from
   1) variable handler through slicing path.

(2) response is equal to handler.ResponseObject
   response is obtained from
   1) variable handler through slicing path.

25.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_ThrowException_WithBackOff

Code with line numbers

This unit test case method tests execute throw exception with back off.

26.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_ThrowException_WithoutBackOff

Code with line numbers

This unit test case method tests execute throw exception without back off.

27.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_ThrowException_WithBackOff

Code with line numbers

This unit test case method tests execute async throw exception with back off.

28.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_ThrowException_WithoutBackOff

Code with line numbers

This unit test case method tests execute async throw exception without back off.

29.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.Execute_Error

Code with line numbers

This unit test case method tests execute error .

This unit test case validates that:
(1) Fail at line 661.

(2) ex.Message.Contains(handler.ExpectedError) is true.

(3) handler.Calls is equal to 1

30.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_Error

Code with line numbers

This unit test case method tests execute async error .

This unit test case validates that:
(1) error.Contains(handler.ExpectedError) is true.

(2) handler.Calls is equal to 1

31.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsync_Simultaneously

Code with line numbers

This unit test case method tests execute async simultaneously .

This unit test case validates that:
(1) response.Name is equal to "Name-" + nameIndex
   response is obtained from
   1) variable tasks through slicing path.

(2) handler.Calls is equal to calls + calls / 2

32.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsStream

Code with line numbers

This unit test case method tests execute client service request test as stream.

33.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.ExecuteAsStreamAsync

Code with line numbers

This unit test case method tests execute client service request test as stream async.

34.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_QueryParameters

Code with line numbers

This unit test case method tests create request query parameters .

This unit test case includes following focal methods:
(1) var httpRequest = request.CreateRequest();(@line 897)
This focal method is related to assertions at line 898

This unit test case validates that:
(1) httpRequest.RequestUri is equal to new Uri("https://build_request_params/restPath0?required=a&optionalWithValue=b&optionalEmpty")
   httpRequest is obtained from
   1) variable request through slicing path.

35.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_QueryParameterIsMissing

Code with line numbers

This unit test case method tests create request query parameter is missing .

This unit test case validates that:
(1) Fail at line 914.

(2) ex.Message.Contains("Parameter \"required\" is missing") is true.

36.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_QueryDateParameter

Code with line numbers

This unit test case method tests create request query date parameter .

This unit test case includes following focal methods:
(1) var httpRequest = request.CreateRequest();(@line 949)
This focal method is related to assertions at line 950
(2) httpRequest = request.CreateRequest();(@line 955)
This focal method is related to assertions at line 956

This unit test case validates that:
(1) httpRequest.RequestUri is equal to new Uri("https://build_request_params/restPath0")
   httpRequest is obtained from
   1) variable request through slicing path.

(2) httpRequest.RequestUri is equal to new Uri("https://build_request_params/restPath0?min_time=2002-02-25T12:57:32.777Z")
   httpRequest is obtained from
   1) variable date through slicing path.

37.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_PathParameters

Code with line numbers

This unit test case method tests create request path parameters .

This unit test case includes following focal methods:
(1) var httpRequest = request.CreateRequest();(@line 1007)
This focal method is related to assertions at line 1008

This unit test case validates that:
(1) httpRequest.RequestUri is equal to new Uri("https://build_request_params/restPath/42/something/43")
   httpRequest is obtained from
   1) variable request through slicing path.

38.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_DeveloperKey

Code with line numbers

This unit test case method tests create request developer key .

This unit test case includes following focal methods:
(1) var httpRequest = request.CreateRequest();(@line 1032)
This focal method is related to assertions at line 1033

This unit test case validates that:
(1) httpRequest.RequestUri is equal to new Uri("https://build_request_params/restPath0?key=" + SimpleDeveloperKey)
   httpRequest is obtained from
   1) variable request through slicing path.

39.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_DeveloperKey_RequiresEscape

Code with line numbers

This unit test case method tests create request developer key requires escape .

This unit test case includes following focal methods:
(1) var httpRequest = request.CreateRequest();(@line 1050)
This focal method is related to assertions at line 1051

This unit test case validates that:
(1) httpRequest.RequestUri is equal to new Uri("https://build_request_params/restPath0?key=%3F%26%5E%25%20%20ABC123")
   httpRequest is obtained from
   1) variable request through slicing path.

40.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_UnsupportedMethods

Code with line numbers

This unit test case method tests create request unsupported methods .

This unit test case validates that:
(1) The unit test throws an ArgumentOutOfRangeException exception.

41.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_SupportedMethods

Code with line numbers

This unit test case method tests create request supported methods .

42.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.CreateRequest_ETag

Code with line numbers

This unit test case method tests create request e tag .

This unit test case includes following focal methods:
(1) var httpRequest = request.CreateRequest();(@line 1106)
This focal method is related to assertions at line 1107, line 1108
(2) httpRequest = request.CreateRequest();(@line 1114)
This focal method is related to assertions at line 1115, line 1116
(3) httpRequest = request.CreateRequest();(@line 1120)
This focal method is related to assertions at line 1121, line 1122, line 1123
(4) httpRequest = request.CreateRequest();(@line 1127)
This focal method is related to assertions at line 1128, line 1129, line 1130
(5) httpRequest = request.CreateRequest();(@line 1135)
This focal method is related to assertions at line 1136, line 1137, line 1138
(6) httpRequest = request.CreateRequest();(@line 1143)
This focal method is related to assertions at line 1144, line 1145, line 1146
(7) httpRequest = request.CreateRequest();(@line 1152)
This focal method is related to assertions at line 1153, line 1154

This unit test case validates that:
(1) httpRequest.Headers.IfMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(2) httpRequest.Headers.IfNoneMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(3) httpRequest.Headers.IfMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(4) httpRequest.Headers.IfNoneMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(5) httpRequest.Headers.IfMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(6) httpRequest.Headers.IfNoneMatch.Count is equal to 1
   httpRequest is obtained from
   1) variable body through slicing path.

(7) httpRequest.Headers.IfNoneMatch.First() is equal to new EntityTagHeaderValue(body.ETag)
   httpRequest is obtained from
   1) variable body through slicing path.

(8) httpRequest.Headers.IfNoneMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(9) httpRequest.Headers.IfMatch.Count is equal to 1
   httpRequest is obtained from
   1) variable body through slicing path.

(10) httpRequest.Headers.IfMatch.First() is equal to new EntityTagHeaderValue(body.ETag)
   httpRequest is obtained from
   1) variable body through slicing path.

(11) httpRequest.Headers.IfMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(12) httpRequest.Headers.IfNoneMatch.Count is equal to 1
   httpRequest is obtained from
   1) variable body through slicing path.

(13) httpRequest.Headers.IfNoneMatch.First() is equal to new EntityTagHeaderValue(body.ETag)
   httpRequest is obtained from
   1) variable body through slicing path.

(14) httpRequest.Headers.IfNoneMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(15) httpRequest.Headers.IfMatch.Count is equal to 1
   httpRequest is obtained from
   1) variable body through slicing path.

(16) httpRequest.Headers.IfMatch.First() is equal to new EntityTagHeaderValue(body.ETag)
   httpRequest is obtained from
   1) variable body through slicing path.

(17) httpRequest.Headers.IfNoneMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

(18) httpRequest.Headers.IfMatch.Count is equal to 0
   httpRequest is obtained from
   1) variable body through slicing path.

43.  Google.Apis.Tests.Apis.Requests.ClientServiceRequestTest.GetDefaultETagActionTest

Code with line numbers

This unit test case method tests get default e tag action test .

This unit test case validates that:
(1) ClientServiceRequest.GetDefaultETagAction(HttpConsts.Get) is equal to ETagAction.IfNoneMatch.

(2) ClientServiceRequest.GetDefaultETagAction(HttpConsts.Post) is equal to ETagAction.IfMatch.

(3) ClientServiceRequest.GetDefaultETagAction(HttpConsts.Patch) is equal to ETagAction.IfMatch.

(4) ClientServiceRequest.GetDefaultETagAction(HttpConsts.Put) is equal to ETagAction.IfMatch.

(5) ClientServiceRequest.GetDefaultETagAction(HttpConsts.Delete) is equal to ETagAction.IfMatch.

(6) ClientServiceRequest.GetDefaultETagAction("INVALID") is equal to ETagAction.Ignore.

44.  Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.ConstructTest

Code with line numbers

This unit test case method tests construct test .

This unit test case validates that:
(1) The unit test does not throw an exception.

45.  Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.MultipleAddTest

Code with line numbers

This unit test case method tests handle multiple add test .

This unit test case includes following focal methods:
(1) col.Add("black","hole");(@line 49)
This focal method is related to assertions at line 50
(2) col.Add("white","dwarf");(@line 54)
This focal method is related to assertions at line 55

This unit test case validates that:
(1) col.Count is equal to 0

(2) col.Count is equal to 1

(3) col.Count is equal to 2

46.  Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.DuplicateTest

Code with line numbers

This unit test case method tests duplicate test .

This unit test case includes following focal methods:
(1) col.Add("chocolate","pudding");(@line 67)
This focal method is related to assertions at line 68

This unit test case validates that:
(1) col.Count is equal to 3

47.  Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.FromQueryStringTest

Code with line numbers

This unit test case method tests convert from query string test .

This unit test case validates that:
(1) collection.Count is equal to 4
   collection is obtained from
   1) variable query through slicing path.

48.  Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.FromQueryStringTest_Invalid

Code with line numbers

This unit test case method tests convert from query string test invalid .

This unit test case validates that:
(1) The unit test throws an ArgumentException exception.

49.  Google.Apis.Tests.Apis.Requests.ParameterCollectionTest.FromDictionaryTest

Code with line numbers

This unit test case method tests convert from dictionary test .

This unit test case includes following focal methods:
(1) CollectionAssert.AreEqual(new string,collection.GetAllMatches("test"));(@line 108)
This focal method is related to assertions at line 109

This unit test case validates that:
(1) collection.Count is equal to 8
   collection is obtained from
   1) variable dictionary through slicing path.

50.  Google.Apis.Tests.Apis.Requests.ParameterValidatorTest.ValidateRegexEmptyNeedsDataTest

Code with line numbers

This unit test case method tests validate regex empty needs data test .

This unit test case validates that:
(1) ParameterValidator.ValidateRegex(parameter,"") is false.

51.  Google.Apis.Tests.Apis.Requests.ParameterValidatorTest.ValidateRegexTest

Code with line numbers

This unit test case method tests validate regex test .

This unit test case validates that:
(1) ParameterValidator.ValidateRegex(parameter,"Test") is true.

52.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestBasicWebRequest

Code with line numbers

This unit test case method tests basic web request .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 41)
This focal method is related to assertions at line 42, line 43

This unit test case validates that:
(1) request.Method is equal to HttpMethod.Get
   request is obtained from
   1) variable builder through slicing path.

(2) request.RequestUri is equal to new Uri("http://www.example.com/")
   request is obtained from
   1) variable builder through slicing path.

53.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPostWebRequest

Code with line numbers

This unit test case method tests post web request .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 56)
This focal method is related to assertions at line 57, line 58

This unit test case validates that:
(1) request.Method is equal to HttpMethod.Post
   request is obtained from
   1) variable builder through slicing path.

(2) request.RequestUri is equal to new Uri("http://www.example.com/")
   request is obtained from
   1) variable builder through slicing path.

54.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestBasePlusPathMath

Code with line numbers

This unit test case method tests base plus path math .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 72)
This focal method is related to assertions at line 73, line 74

This unit test case validates that:
(1) request.Method is equal to HttpMethod.Put
   request is obtained from
   1) variable builder through slicing path.

(2) request.RequestUri is equal to new Uri("http://www.example.com/test/path")
   request is obtained from
   1) variable builder through slicing path.

55.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestSingleQueryParameter

Code with line numbers

This unit test case method tests single query parameter .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 88)
This focal method is related to assertions at line 89

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("http://www.example.com/?testQueryParam=testValue")
   request is obtained from
   1) variable builder through slicing path.

56.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestMultipleQueryParameter

Code with line numbers

This unit test case method tests multiple query parameter .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 103)
This focal method is related to assertions at line 104

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("http://www.example.com/?testQueryParamA=testValueA&testQueryParamB=testValueB")
   request is obtained from
   1) variable builder through slicing path.

57.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestQueryParameterWithUrlEncode

Code with line numbers

This unit test case method tests query parameter with url encode.

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 119)
This focal method is related to assertions at line 120

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("http://www.example.com/?test%20Query%20Param=test%20%25va%2Fue")
   request is obtained from
   1) variable builder through slicing path.

58.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestMultipleQueryParameters

Code with line numbers

This unit test case method tests multiple query parameters .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 139)
This focal method is related to assertions at line 140

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("http://www.example.com/?q=value1&q=value2")
   request is obtained from
   1) variable builder through slicing path.

59.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestNullQueryParameters

Code with line numbers

This unit test case method tests null query parameters .

This unit test case includes following focal methods:
(1) An assertion in line 156 validating that builder.BuildUri().AbsoluteUri is equal to "http://www.example.com/?p"

60.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameter

Code with line numbers

This unit test case method tests path parameter .

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 171)
This focal method is related to assertions at line 172

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("http://www.example.com/test/value/foo/bar")
   request is obtained from
   1) variable builder through slicing path.

61.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestInvalidPathParameters

Code with line numbers

This unit test case method tests invalid path parameters .

This unit test case validates that:
(1) The unit test throws an ArgumentException exception.

(2) The unit test throws an ArgumentException exception.

62.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameterWithUrlEncode

Code with line numbers

This unit test case method tests path parameter with url encode.

This unit test case includes following focal methods:
(1) var request = builder.CreateRequest();(@line 215)
This focal method is related to assertions at line 216

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("http://www.example.com/test/%20%25va%2Fue")
   request is obtained from
   1) variable builder through slicing path.

63.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestQueryAndPathParameters

Code with line numbers

This unit test case method tests query and path parameters .

This unit test case includes following focal methods:
(1) An assertion in line 233 validating that builder.BuildUri().AbsoluteUri is equal to "http://www.test.com/colors?list=red,yellow&on=1"

64.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level1

Code with line numbers

This unit test case method tests path parameters level 1 .

65.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level2

Code with line numbers

This unit test case method tests path parameters level 2 .

66.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level3

Code with line numbers

This unit test case method tests path parameters level 3 .

67.  Google.Apis.Tests.Apis.Requests.RequestBuilderTest.TestPathParameters_Level4

Code with line numbers

This unit test case method tests path parameters level 4 .

68.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_Redirect

Code with line numbers

This unit test case method tests send async redirect .

This unit test case validates that:
(1) response.StatusCode is equal to HttpStatusCode.Redirect

(2) response.Headers.Location is equal to new Uri(location + configurableHanlder.NumRedirects + 1)

(3) redirectHandler.Calls is equal to configurableHanlder.NumRedirects + 1
   redirectHandler is obtained from
   1) variable location through slicing path.

69.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_Redirect_FollowRedirectFalse

Code with line numbers

This unit test case method tests send async redirect follow redirect false .

This unit test case validates that:
(1) response.StatusCode is equal to HttpStatusCode.Redirect

(2) response.Headers.Location is equal to new Uri(location + 1)

(3) redirectHandler.Calls is equal to 1
   redirectHandler is obtained from
   1) variable location through slicing path.

70.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExecuteInterceptor

Code with line numbers

This unit test case method tests send async execute interceptor .

71.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExecuteInterceptor_AbnormalResponse

Code with line numbers

This unit test case method tests send async execute interceptor abnormal response .

72.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExecuteInterceptor_AbnormalResponse_UnsuccessfulResponseHandler

Code with line numbers

This unit test case method tests send async execute interceptor abnormal response unsuccessful response handler .

This unit test case validates that:
(1) interceptor.Calls is equal to configurableHanlder.NumTries

(2) handler.Calls is equal to configurableHanlder.NumTries
   handler is obtained from
   1) variable handler through slicing path.

73.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_UnsuccessfulReponseHanlder_SuccessfulReponse

Code with line numbers

This unit test case method tests send async unsuccessful reponse hanlder successful reponse .

74.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_UnsuccessfulReponseHanlder_AbnormalResponse_DifferentStatusCode

Code with line numbers

This unit test case method tests send async unsuccessful reponse hanlder abnormal response different status code .

75.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_UnsuccessfulReponseHanlder_AbnormalResponse_SameStatusCode

Code with line numbers

This unit test case method tests send async unsuccessful reponse hanlder abnormal response same status code .

76.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_AbnormalResponse_WithoutUnsuccessfulReponseHandler

Code with line numbers

This unit test case method tests send async abnormal response without unsuccessful reponse handler.

This unit test case validates that:
(1) response.StatusCode is equal to HttpStatusCode.ServiceUnavailable

(2) handler.Calls is equal to 1
   handler is obtained from
   1) variable handler through slicing path.

77.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExceptionHandler_SuccessReponse

Code with line numbers

This unit test case method tests send async exception handler success reponse .

78.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExceptionHandler_ThrowException_DontHandle

Code with line numbers

This unit test case method tests send async exception handler throw exception dont handle .

79.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ExceptionHandler_ThrowException_Handle

Code with line numbers

This unit test case method tests send async exception handler throw exception handle .

80.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_ThrowException_WithoutExceptionHandler

Code with line numbers

This unit test case method tests send async throw exception without exception handler.

This unit test case validates that:
(1) Fail at line 550 and "SendAsync should throw an exception".

(2) ae.InnerException.Message is equal to ExceptionMessageHandler.ExceptionMessage

(3) Fail at line 558 and "AggregateException was suppose to be thrown".

(4) handler.Calls is equal to 1
   handler is obtained from
   1) variable handler through slicing path.

81.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_Throw_Max2Minutes

Code with line numbers

This unit test case method tests send async back off exception handler throw max 2 minutes .

82.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_Throw_Max200Milliseconds

Code with line numbers

This unit test case method tests send async back off exception handler throw max 200 milliseconds .

83.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_Throw_Max1Hour

Code with line numbers

This unit test case method tests send async back off exception handler throw max 1 hour .

84.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_ThrowCanceledException

Code with line numbers

This unit test case method tests send async back off exception handler throw canceled exception .

85.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_DifferentHandler

Code with line numbers

This unit test case method tests send async back off exception handler different handler .

86.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffExceptionHandler_DontThrow

Code with line numbers

This unit test case method tests send async back off exception handler dont throw .

87.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_ServiceUnavailable_Max5Seconds

Code with line numbers

This unit test case method tests send async back off unsuccessful response handler service unavailable max 5 seconds .

88.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_ServiceUnavailable_Max10Hours

Code with line numbers

This unit test case method tests send async back off unsuccessful response handler service unavailable max 10 hours .

89.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_OK

Code with line numbers

This unit test case method tests send async back off unsuccessful response handler ok .

90.  Google.Apis.Tests.Apis.Http.ConfigurableMessageHandlerTest.SendAsync_BackOffUnsuccessfulResponseHandler_Cancel

Code with line numbers

This unit test case method tests send async back off unsuccessful response handler cancel .

91.  Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestGetWithUrlOkayLengthByDefault

Code with line numbers

This unit test case method tests get with url okay length by default.

92.  Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestNonGetWithUrlOkayLengthByDefault

Code with line numbers

This unit test case method tests non get with url okay length by default.

93.  Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestGetPathQueryWithUrlOkayLengthByDefault

Code with line numbers

This unit test case method tests get path query with url okay length by default.

This unit test case validates that:
(1) request.RequestUri is equal to new Uri(uri)
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(2) mockHandler.RequestContent is equal to query
   mockHandler is obtained from
   1) variable mockHandler through slicing path.

94.  Google.Apis.Tests.Apis.Http.MaxUrlLengthInterceptorTest.TestGetWithUrlTooLongByUserSpecified

Code with line numbers

This unit test case method tests get with url too long by user specified.

This unit test case validates that:
(1) requestUri.Length is equal to maxUrlLength + 1
   requestUri is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(2) request.Method is equal to HttpMethod.Post
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(3) request.Headers.GetValues("X-HTTP-Method-Override").Single() is equal to "GET"
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(4) request.Content.Headers.ContentType is equal to new MediaTypeHeaderValue("application/x-www-form-urlencoded")
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(5) request.RequestUri is equal to new Uri(uri)
   request is obtained from
   1) variable uri through slicing path
   2) variable query through slicing path.

(6) mockHandler.RequestContent is equal to query
   mockHandler is obtained from
   1) variable mockHandler through slicing path.

95.  Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.GetNextBackOff_InvalidValue

Code with line numbers

This unit test case method tests get next back off invalid value .

This unit test case validates that:
(1) Fail at line 40.

(2) Fail at line 47.

96.  Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.Constructor_InvalidValue

Code with line numbers

This unit test case method tests handle constructor invalid value .

97.  Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.GetNextBackOff_Retry1To15

Code with line numbers

This unit test case method tests get next back off retry 1 to 15.

98.  Google.Apis.Tests.Apis.Utils.ExponentialBackOffTest.GetNextBackOff_MaxNumRetries

Code with line numbers

This unit test case method tests get next back off max num retries .

99.  Google.Apis.Tests.Apis.Utils.RepeatableTest.CreateRepeatableTest

Code with line numbers

This unit test case method tests create repeatable test .

This unit test case validates that:
(1) Repeatable "Test" is not null.

(2) Repeatable new is not null.

(3) Repeatable new string is null.

(4) Repeatable 0 is not null.

(5) Repeatable 1 is not null.

(6) Repeatable new is not null.

(7) Repeatable new int is null.

(8) value is equal to ++ i.

(9) i is equal to 9.

100.  Google.Apis.Tests.Apis.Utils.RepeatableTest.TestImplicitConversion

Code with line numbers

This unit test case method tests implicit conversion .

This unit test case validates that:
(1) ConcatStrings("Foo",null) is equal to "Foo".

(2) ConcatStrings("Foo","bar") is equal to "Foobar".

(3) ConcatStrings("Foo",new) is equal to "FoobarTest".

101.  Google.Apis.Tests.Apis.Utils.RepeatableTest.TestRepeatedGet

Code with line numbers

This unit test case method tests repeated get .

102.  Google.Apis.Tests.Apis.Utils.RepeatableTest.TestModifiedSource

Code with line numbers

This unit test case method tests modified source .

103.  Google.Apis.Tests.Apis.Utils.StringValueAttributeTest.ConstructTest

Code with line numbers

This unit test case method tests construct test .

This unit test case validates that:
(1) The unit test throws an ArgumentNullException exception.

(2) attribute.Text is equal to "FooBar".

104.  Google.Apis.Tests.Apis.Download.MediaDownloaderTest.Download_MultipleChunks

Code with line numbers

This unit test case method tests download multiple chunks .

105.  Google.Apis.Tests.Apis.Download.MediaDownloaderTest.Download_SingleChunk

Code with line numbers

This unit test case method tests download single chunk .

106.  Google.Apis.Tests.Apis.Download.MediaDownloaderTest.Download_SingleChunk_UriContainsQueryParameters

Code with line numbers

This unit test case method tests download single chunk uri contains query parameters .

107.  Google.Apis.Tests.Apis.Download.MediaDownloaderTest.DownloadAsync_MultipleChunks

Code with line numbers

This unit test case method tests download async multiple chunks .

108.  Google.Apis.Tests.Apis.Download.MediaDownloaderTest.DownloadAsync_SingleChunk

Code with line numbers

This unit test case method tests download async single chunk .

109.  Google.Apis.Tests.Apis.Download.MediaDownloaderTest.DownloadAsync_Cancel

Code with line numbers

This unit test case method tests download async cancel .

110.  Google.Apis.Tests.Apis.Logging.NullLoggerTests.ConstructTest

Code with line numbers

This unit test case method tests construct test .

This unit test case validates that:
(1) The unit test does not throw an exception.

111.  Google.Apis.Tests.Apis.Logging.NullLoggerTests.GetTypeTest

Code with line numbers

This unit test case method tests get type test .

This unit test case includes following focal methods:
(1) An assertion in line 47 validating that logger.ForType() is not null.

112.  Google.Apis.Tests.Apis.Logging.NullLoggerTests.SimpleLogTest

Code with line numbers

This unit test case method tests handle simple log test .

This unit test case includes following focal methods:
(1) myLogger.Info("FooBar","Bar");(@line 62)
This focal method is related to assertions at line 63

This unit test case validates that:
(1) myLogger.IsDebugEnabled is equal to myLogger.IsDebugEnabled.

113.  Google.Apis.Tests.Apis.Util.UtilitiesTest.ThrowIfNullTest

Code with line numbers

This unit test case method tests throw if null test .

This unit test case validates that:
(1) The unit test throws an exception.

114.  Google.Apis.Tests.GoogleApiExceptionTests.ConstructorTest

Code with line numbers

This unit test case method tests handle constructor test .

This unit test case includes following focal methods:
(1) An assertion in line 39 validating that exception.ToString() Contains.Substring(name

This unit test case validates that:
(1) exception is a instance of Exception.
   exception is obtained from
   1) variable name through slicing path.

115.  Google.Apis.Tests.GoogleApiExceptionTests.ThrowTest

Code with line numbers

This unit test case method tests throw test .

This unit test case validates that:
(1) The unit test throws an GoogleApiException exception.

116.  Google.Apis.Tests.GoogleApiExceptionTests.ConstructorFailTest

Code with line numbers

This unit test case method tests handle constructor fail test .

This unit test case validates that:
(1) The unit test throws an ArgumentNullException exception.

117.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestConstructor_ArgumentException

Code with line numbers

This unit test case method tests constructor argument exception .

This unit test case validates that:
(1) Fail at line 56.

(2) ex.Message.Contains("You MUST set ClientSecret or ClientSecretStream") is true.

118.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestConstructor_DefaultValues

Code with line numbers

This unit test case method tests constructor default values .

This unit test case validates that:
(1) flow.AccessMethod is not null.

(2) flow.AccessMethod Is.InstanceOf(

(3) flow.AuthorizationServerUrl is equal to "https://authorization.com"

(4) flow.ClientSecrets is not null.

(5) flow.ClientSecrets.ClientId is equal to "id"

(6) flow.ClientSecrets.ClientSecret is equal to "secret"

(7) flow.Clock Is.InstanceOf(

(8) flow.DataStore is null.

(9) flow.HttpClient is not null.

(10) flow.Scopes is not null.

(11) flow.TokenServerUrl is equal to "https://token.com"

(12) flow.HttpClient.MessageHandler.UnsuccessfulResponseHandlers.Count() is equal to 1

(13) flow.HttpClient.MessageHandler.UnsuccessfulResponseHandlers.First() Is.InstanceOf(

119.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.LoadTokenAsync_NoDataStore

Code with line numbers

This unit test case method tests load token async no data store .

This unit test case includes following focal methods:
(1) An assertion in line 93 validating that flow.LoadTokenAsync("user",CancellationToken.None).Result is null.

120.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.LoadTokenAsync_NullResponse

Code with line numbers

This unit test case method tests load token async null response .

This unit test case validates that:
(1) SubtestLoadTokenAsync(tcs) is null.

121.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.LoadTokenAsync_TokenResponse

Code with line numbers

This unit test case method tests load token async token response .

This unit test case validates that:
(1) result is equal to response
   result is obtained from
   1) variable tcs through slicing path.

122.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestCreateAuthorizationCodeRequest

Code with line numbers

This unit test case method tests create authorization code request .

This unit test case validates that:
(1) request.AuthorizationServerUrl is equal to new Uri(AuthorizationCodeUrl)

(2) request.ClientId is equal to "id"

(3) request.RedirectUri is equal to "redirect"

(4) request.ResponseType is equal to "code"

(5) request.Scope is equal to "a b"

(6) request.State is null.

123.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestExchangeCodeForTokenAsync

Code with line numbers

This unit test case method tests exchange code for token async.

124.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestRefreshTokenAsync

Code with line numbers

This unit test case method tests refresh token async .

125.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_AuthorizationCodeRequest

Code with line numbers

This unit test case method tests fetch token async authorization code request .

126.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_RefreshTokenRequest

Code with line numbers

This unit test case method tests fetch token async refresh token request .

127.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_AuthorizationCodeRequest_Error

Code with line numbers

This unit test case method tests fetch token async authorization code request error .

128.  Google.Apis.Auth.OAuth2.Flows.AuthorizationCodeFlowTests.TestFetchTokenAsync_RefreshTokenRequest_Error

Code with line numbers

This unit test case method tests fetch token async refresh token request error .

129.  Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestConstructor

Code with line numbers

This unit test case method tests constructor .

This unit test case validates that:
(1) request.AuthorizationServerUrl is equal to AuthorizationCodeUrl

(2) request.ClientId is null.

(3) request.RedirectUri is null.

(4) request.ResponseType is equal to "code"

(5) request.Scope is null.

(6) request.State is null.

130.  Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestBuild_DefaultValues

Code with line numbers

This unit test case method tests build default values .

This unit test case includes following focal methods:
(1) var uri = request.Build();(@line 48)
This focal method is related to assertions at line 49

This unit test case validates that:
(1) uri is equal to new Uri(AuthorizationCodeUrl.ToString() + "?response_type=code")

131.  Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestBuild

Code with line numbers

This unit test case method tests build .

This unit test case includes following focal methods:
(1) var uri = request.Build();(@line 62)
This focal method is related to assertions at line 63

This unit test case validates that:
(1) uri is equal to new Uri(AuthorizationCodeUrl.ToString() + "?response_type=code&client_id=100&redirect_uri=200&scope=SCOPE&state=state")

132.  Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeRequestUrlTests.TestBuild_EscapeValues

Code with line numbers

This unit test case method tests build escape values .

This unit test case includes following focal methods:
(1) var uri = request.Build();(@line 77)
This focal method is related to assertions at line 78

This unit test case validates that:
(1) uri is equal to new Uri(AuthorizationCodeUrl.ToString() + "?response_type=code&client_id=pa%24%24word&redirect_uri=%3F%3F%3F&scope=SC%40PE&state=%21")

133.  Google.Apis.Auth.OAuth2.Requests.AuthorizationCodeTokenRequestTests.TestConstructor

Code with line numbers

This unit test case method tests constructor .

This unit test case validates that:
(1) request.Code is null.

(2) request.ClientId is null.

(3) request.ClientSecret is null.

(4) request.RedirectUri is null.

(5) request.GrantType is equal to "authorization_code"

(6) request.Scope is null.

134.  Google.Apis.Auth.OAuth2.Requests.GoogleAuthorizationCodeRequestUrlTest.TestConstructor

Code with line numbers

This unit test case method tests constructor .

This unit test case validates that:
(1) request.AuthorizationServerUrl is equal to AuthorizationCodeUrl

(2) request.ClientId is null.

(3) request.RedirectUri is null.

(4) request.ResponseType is equal to "code"

(5) request.Scope is null.

(6) request.State is null.

(7) request.AccessType is equal to "offline"

(8) request.ApprovalPrompt is null.

(9) request.LoginHint is null.

135.  Google.Apis.Auth.OAuth2.Requests.RefreshTokenRequestTests.TestConstructor

Code with line numbers

This unit test case method tests constructor .

This unit test case validates that:
(1) request.Scope is null.

(2) request.ClientId is null.

(3) request.ClientSecret is null.

(4) request.RefreshToken is null.

(5) request.GrantType is equal to "refresh_token"

136.  Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrlTests.TestConstructor_Default

Code with line numbers

This unit test case method tests constructor default .

This unit test case validates that:
(1) response.Code is null.

(2) response.Error is null.

(3) response.ErrorUri is null.

(4) response.ErrorDescription is null.

(5) response.State is null.

137.  Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrlTests.TestConstructor_Dictionary

Code with line numbers

This unit test case method tests constructor dictionary .

138.  Google.Apis.Auth.OAuth2.Responses.AuthorizationCodeResponseUrlTests.TestConstructor_Query

Code with line numbers

This unit test case method tests constructor query .

139.  Google.Apis.Auth.OAuth2.Responses.TokenResponseTests.TestConstructor

Code with line numbers

This unit test case method tests constructor .

This unit test case validates that:
(1) response.AccessToken is null.

(2) response.ExpiresInSeconds is null.

(3) response.RefreshToken is null.

(4) response.Scope is null.

(5) response.Issued is equal to DateTime.MinValue.

140.  Google.Apis.Auth.OAuth2.Responses.TokenResponseTests.TestSerializer

Code with line numbers

This unit test case method tests serializer .

This unit test case validates that:
(1) tokenResponse.AccessToken is equal to "123"

(2) tokenResponse.RefreshToken is equal to "456"

(3) tokenResponse.Scope is equal to "789"

(4) tokenResponse.ExpiresInSeconds is equal to 1000

141.  Google.Apis.Auth.OAuth2.Responses.TokenResponseTests.IsExpired

Code with line numbers

This unit test case method tests check if tokenresponsetests is expired .

This unit test case includes following focal methods:
(1) An assertion in line 75 validating that response.IsExpired(mockClock) is true.
(2) An assertion in line 79 validating that response.IsExpired(mockClock) is true.
(3) An assertion in line 82 validating that response.IsExpired(mockClock) is true.
(4) An assertion in line 85 validating that response.IsExpired(mockClock) is true.
(5) An assertion in line 88 validating that response.IsExpired(mockClock) is true.
(6) An assertion in line 91 validating that response.IsExpired(mockClock) is true.
(7) An assertion in line 94 validating that response.IsExpired(mockClock) is true.
(8) An assertion in line 97 validating that response.IsExpired(mockClock) is false.
(9) An assertion in line 100 validating that response.IsExpired(mockClock) is false.

142.  Google.Apis.Auth.OAuth2.BearerTokenTests.AuthorizationHeaderAccessMethod_Intercept

Code with line numbers

This unit test case method tests handle authorization header access method intercept .

This unit test case validates that:
(1) request.Headers.Authorization.ToString() is equal to "Bearer abc"

143.  Google.Apis.Auth.OAuth2.BearerTokenTests.AuthorizationHeaderAccessMethod_InterceptOverride

Code with line numbers

This unit test case method tests handle authorization header access method intercept override .

This unit test case validates that:
(1) request.Headers.Authorization.ToString() is equal to "Bearer abc"

144.  Google.Apis.Auth.OAuth2.BearerTokenTests.AuthorizationHeaderAccessMethod_GetAccessToken

Code with line numbers

This unit test case method tests handle authorization header access method get access token .

This unit test case validates that:
(1) accessToken is null or empty.
   accessToken is obtained from
   1) variable request through slicing path.

(2) accessToken is equal to "abc"
   accessToken is obtained from
   1) variable request through slicing path.

145.  Google.Apis.Auth.OAuth2.BearerTokenTests.QueryParameterAccessMethod_Intercept

Code with line numbers

This unit test case method tests query parameter access method intercept .

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("https://sample.com/path?access_token=abc")

146.  Google.Apis.Auth.OAuth2.BearerTokenTests.QueryParameterAccessMethod_Intercept_WithQueryParameters

Code with line numbers

This unit test case method tests query parameter access method intercept with query parameters.

This unit test case validates that:
(1) request.RequestUri is equal to new Uri("https://sample.com/path?a=1&access_token=abc")

147.  Google.Apis.Auth.OAuth2.BearerTokenTests.QueryParameterAccessMethod_GetAccessToken

Code with line numbers

This unit test case method tests query parameter access method get access token .

This unit test case validates that:
(1) accessToken is null or empty.
   accessToken is obtained from
   1) variable request through slicing path.

(2) accessToken is null or empty.
   accessToken is obtained from
   1) variable request through slicing path.

(3) accessToken is equal to "abc"
   accessToken is obtained from
   1) variable request through slicing path.

(4) accessToken is equal to "abc"
   accessToken is obtained from
   1) variable request through slicing path.

148.  Google.Apis.Auth.OAuth2.ComputeCredentialTests.IsRunningOnComputeEngine

Code with line numbers

This unit test case method tests check if computecredentialtests is running on compute engine.

This unit test case validates that:
(1) ComputeCredential.IsRunningOnComputeEngine().Result is false.

149.  Google.Apis.Auth.OAuth2.ComputeCredentialTests.IsRunningOnComputeEngine_ResultIsCached

Code with line numbers

This unit test case method tests check if computecredentialtests is running on compute engine result is cached.

This unit test case validates that:
(1) ComputeCredential.IsRunningOnComputeEngine() and ComputeCredential.IsRunningOnComputeEngine() are same.

150.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_UserCredential_FromEnvironmentVariable

Code with line numbers

This unit test case method tests get default credential user credential from environment variable.

This unit test case validates that:
(1) credential.UnderlyingCredential is a instance of typeof(UserCredential).

(2) credential.IsCreateScopedRequired is false.

(3) credential.CreateScoped(new) and credential are same.

151.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_UserCredential_FromWellKnownFileLocation

Code with line numbers

This unit test case method tests get default credential user credential from well known file location.

This unit test case validates that:
(1) credential.UnderlyingCredential is a instance of typeof(UserCredential).

(2) credential.IsCreateScopedRequired is false.

(3) credential.CreateScoped(new) and credential are same.

152.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_UserCredential_FromWellKnownFileLocationUnix

Code with line numbers

This unit test case method tests get default credential user credential from well known file location unix.

This unit test case validates that:
(1) credential.UnderlyingCredential is a instance of typeof(UserCredential).

(2) credential.IsCreateScopedRequired is false.

153.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_ServiceAccountCredential_FromEnvironmentVariable

Code with line numbers

This unit test case method tests get default credential service account credential from environment variable.

This unit test case validates that:
(1) credential.UnderlyingCredential is a instance of typeof(ServiceAccountCredential).

(2) credential.IsCreateScopedRequired is true.

(3) scopedCredential and credential are not same.
   scopedCredential is obtained from
   1) variable scopes through slicing path.

(4) scopedCredential.UnderlyingCredential is a instance of typeof(ServiceAccountCredential).
   scopedCredential is obtained from
   1) variable scopes through slicing path.

(5) scopedCredential.IsCreateScopedRequired is false.
   scopedCredential is obtained from
   1) variable scopes through slicing path.

154.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_NoCredentialFiles

Code with line numbers

This unit test case method tests get default credential no credential files .

This unit test case validates that:
(1) Fail at line 208.

(2) e.Message.Contains("The Application Default Credentials are not available") is true.

155.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_MissingCredentialFile

Code with line numbers

This unit test case method tests get default credential missing credential file .

This unit test case validates that:
(1) Fail at line 226.

(2) e.Message.Contains("Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS") is true.

156.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_InvalidCredentialFile

Code with line numbers

This unit test case method tests get default credential invalid credential file .

This unit test case validates that:
(1) Fail at line 246.

(2) e.Message.Contains("Error reading credential file from location") is true.

157.  Google.Apis.Auth.OAuth2.DefaultCredentialProviderTests.GetDefaultCredential_BrokenPkcs8Key

Code with line numbers

This unit test case method tests get default credential broken pkcs 8 key .

This unit test case validates that:
(1) Fail at line 266.

(2) e.Message.Contains("Error reading credential file from location") is true.

158.  Google.Apis.Auth.OAuth2.GoogleCredentialTests.FromStream_UserCredential

Code with line numbers

This unit test case method tests convert from stream user credential .

This unit test case validates that:
(1) credential.IsCreateScopedRequired is false.

159.  Google.Apis.Auth.OAuth2.GoogleCredentialTests.FromStream_ServiceAccountCredential

Code with line numbers

This unit test case method tests convert from stream service account credential .

This unit test case validates that:
(1) credential.UnderlyingCredential is a instance of typeof(ServiceAccountCredential).

(2) credential.IsCreateScopedRequired is true.

160.  Google.Apis.Auth.OAuth2.GoogleCredentialTests.FromStream_ServiceAccountCredential_GetJwtAccessToken

Code with line numbers

This unit test case method tests convert from stream service account credential get jwt access token .

This unit test case validates that:
(1) parts.Length is equal to 3.

(2) header.Type is equal to "JWT".

(3) header.Algorithm is equal to "RS256".

(4) payload.Issuer is equal to "CLIENT_EMAIL".

(5) payload.Subject is equal to "CLIENT_EMAIL".

(6) payload.Audience is equal to DummyAuthUri.

(7) payload.ExpirationTimeSeconds - payload.IssuedAtTimeSeconds is equal to 3600.

161.  TestJSonReader.JSONReaderTest.ParseTest

Code with line numbers

This unit test case method tests parse test .

This unit test case validates that:
(1) o is ArrayList is true.
   o is obtained from
   1) variable jsonAsText through slicing path.

(2) a.Count is equal to 4.
   a is obtained from
   1) variable jsonAsText through slicing path.

(3) a[2] is equal to false.
   a is obtained from
   1) variable jsonAsText through slicing path.

(4) o is JSONDictionary is true.
   o is obtained from
   1) variable jsonAsText through slicing path.

(5) o is JSONDictionary is true.
   o is obtained from
   1) variable jsonAsText through slicing path.

(6) a is not null.
   a is obtained from
   1) variable jsonAsText through slicing path.

162.  TestJSonReader.JSONTokenTest.JSONTokenConstructorTest

Code with line numbers

This unit test case method tests json token constructor test .

This unit test case validates that:
(1) The assertion cannot be verified at line 67.