@@ -14,7 +14,7 @@ public class FormsTests
1414 private static readonly string [ ] RawValues = new [ ] { "v1" , "v2, v3" , "\" v4, b\" " , "v5, v6" , "v7" , } ;
1515 private const string JoinedValues = "v1,v2, v3,\" v4, b\" ,v5, v6,v7" ;
1616
17- private const string OriginalFormsString = "q1=v1&q2=v2,b&q3=v3&q3=v4&q4&q5=v5&q5=v+5 " ;
17+ private const string OriginalFormsString = "q1=v1&q2=v2,b&q3=v3&q3=v4&q4&q5=v5&q5=v5&q+6=v+6 " ;
1818
1919 [ Fact ]
2020 public void ParseForm ( )
@@ -30,7 +30,8 @@ public void ParseForm()
3030 Assert . Equal ( "v2,b" , form . Get ( "Q2" ) ) ;
3131 Assert . Equal ( "v3,v4" , form . Get ( "q3" ) ) ;
3232 Assert . Null ( form . Get ( "q4" ) ) ;
33- Assert . Equal ( "v5,v+5" , form . Get ( "Q5" ) ) ;
33+ Assert . Equal ( "v5,v5" , form . Get ( "Q5" ) ) ;
34+ Assert . Equal ( "v 6" , form . Get ( "Q 6" ) ) ;
3435 Assert . True ( stream . CanRead ) ;
3536 }
3637
@@ -89,7 +90,8 @@ public void ReadFromStream()
8990 Assert . Equal ( "v2,b" , form . Get ( "Q2" ) ) ;
9091 Assert . Equal ( "v3,v4" , form . Get ( "q3" ) ) ;
9192 Assert . Null ( form . Get ( "q4" ) ) ;
92- Assert . Equal ( "v5,v+5" , form . Get ( "Q5" ) ) ;
93+ Assert . Equal ( "v5,v5" , form . Get ( "Q5" ) ) ;
94+ Assert . Equal ( "v 6" , form . Get ( "Q 6" ) ) ;
9395 }
9496
9597 [ Fact ]
@@ -107,14 +109,16 @@ public void ReadFromStreamTwice()
107109 Assert . Equal ( "v2,b" , form . Get ( "Q2" ) ) ;
108110 Assert . Equal ( "v3,v4" , form . Get ( "q3" ) ) ;
109111 Assert . Null ( form . Get ( "q4" ) ) ;
110- Assert . Equal ( "v5,v+5" , form . Get ( "Q5" ) ) ;
112+ Assert . Equal ( "v5,v5" , form . Get ( "Q5" ) ) ;
113+ Assert . Equal ( "v 6" , form . Get ( "Q 6" ) ) ;
111114
112115 form = request . ReadFormAsync ( ) . Result ;
113116 Assert . Equal ( "v1" , form . Get ( "q1" ) ) ;
114117 Assert . Equal ( "v2,b" , form . Get ( "Q2" ) ) ;
115118 Assert . Equal ( "v3,v4" , form . Get ( "q3" ) ) ;
116119 Assert . Null ( form . Get ( "q4" ) ) ;
117- Assert . Equal ( "v5,v+5" , form . Get ( "Q5" ) ) ;
120+ Assert . Equal ( "v5,v5" , form . Get ( "Q5" ) ) ;
121+ Assert . Equal ( "v 6" , form . Get ( "Q 6" ) ) ;
118122 }
119123 }
120124}
0 commit comments