@@ -46,13 +46,13 @@ public void PercentEncode_Encodes_Correctly(string value, string expected)
46
46
}
47
47
48
48
[ Test ]
49
- [ TestCase ( "The quick brown fox jumps over the lazy dog" , "rVL90tHhGt0eQ0TCITY74nVL22P%2FltlWS7WvJXpECPs%3D" ) ]
50
- [ TestCase ( "The quick\t brown\n fox\r jumps\r \n over\t \t the\n \n lazy\r \n \r \n dog" , "C%2B2RY0Hna6VrfK1crCkU%2FV1e0ECoxoDh41iOOdmEMx8%3D" ) ]
51
- [ TestCase ( "" , "%2BnkCwZfv%2FQVmBbNZsPKbBT3kAg3JtVn3f3YMBtV83L8%3D" ) ]
52
- [ TestCase ( " !\" #$%&'()*+," , "xcTgWGBVZaw%2Bilg6kjWAGt%2FhCcsVBMMe1CcDEnxnh8Y%3D" ) ]
53
- public void HmacSha256_Hashes_Correctly ( string value , string expected )
49
+ [ TestCase ( "The quick brown fox jumps over the lazy dog" , "rVL90tHhGt0eQ0TCITY74nVL22P%2FltlWS7WvJXpECPs%3D" , "12345678" ) ]
50
+ [ TestCase ( "The quick\t brown\n fox\r jumps\r \n over\t \t the\n \n lazy\r \n \r \n dog" , "C%2B2RY0Hna6VrfK1crCkU%2FV1e0ECoxoDh41iOOdmEMx8%3D" , "12345678" ) ]
51
+ [ TestCase ( "" , "%2BnkCwZfv%2FQVmBbNZsPKbBT3kAg3JtVn3f3YMBtV83L8%3D" , "12345678" ) ]
52
+ [ TestCase ( " !\" #$%&'()*+," , "xcTgWGBVZaw%2Bilg6kjWAGt%2FhCcsVBMMe1CcDEnxnh8Y%3D" , "12345678" ) ]
53
+ [ TestCase ( "AB" , "JJgraAxzpO2Q6wiC3blM4eiQeA9WmkALaZI8yGRH4qM%3D" , "CD!" ) ]
54
+ public void HmacSha256_Hashes_Correctly ( string value , string expected , string consumerSecret )
54
55
{
55
- string consumerSecret = "12345678" ;
56
56
string actual = OAuthTools . GetSignature ( OAuthSignatureMethod . HmacSha256 , value , consumerSecret ) ;
57
57
58
58
Assert . AreEqual ( expected , actual ) ;
0 commit comments