ParseOAuthCredential() static private method

static private ParseOAuthCredential ( byte responseBytes ) : TimeSpan>.Tuple
responseBytes byte
return TimeSpan>.Tuple
        public void ParseOAuthCredential_OmittedExpiresInTest()
        {
            var jsonBytes = Encoding.UTF8.GetBytes(@"
{
  ""access_token"": ""12345acbde"",
  ""token_type"": ""bearer""
}
");
            var expected  = (@"12345acbde", TimeSpan.Zero);

            Assert.Equal(expected, MicrosoftTranslatorApi.ParseOAuthCredential(jsonBytes));
        }
        public void ParseOAuthCredential_ValidResponseTest()
        {
            var jsonBytes = Encoding.UTF8.GetBytes(@"
{
  ""access_token"": ""12345acbde"",
  ""token_type"": ""bearer"",
  ""expires_in"": 3600
}
");
            var expected  = (@"12345acbde", TimeSpan.FromSeconds(3600));

            Assert.Equal(expected, MicrosoftTranslatorApi.ParseOAuthCredential(jsonBytes));
        }