@@ -30,22 +30,25 @@ public void IndexParameters()
3030 }
3131
3232 [ Test ]
33- public void GetSupportsVersioning ( )
33+ public void IndexingDictionaryRespectsCasing ( )
3434 {
35- //TODO: investigate version on get
36- //The elasticsearch docs make no mention of being able to specify version
37- //http://www.elasticsearch.org/guide/reference/api/get.html
35+ var x = new
36+ {
37+ FirstDictionary = new Dictionary < string , object >
38+ {
39+ { "ALLCAPS" , 1 } ,
40+ { "PascalCase" , "should work as well" } ,
41+ { "camelCase" , DateTime . Now }
42+ }
43+ } ;
44+ var result = this . _client . Index ( x ) ;
3845
39- //this._client.Get<ElasticSearchProject>(g=>g.);
40- }
41- [ Test ]
42- public void UpdateSupportsVersioning ( )
43- {
44- //TODO: investigate version on update
45- //The elasticsearch docs make no mention of being able to specify version
46- //http://www.elasticsearch.org/guide/reference/api/get.html
46+ var request = result . ConnectionStatus . Request ;
47+ StringAssert . Contains ( "ALLCAPS" , request ) ;
48+ StringAssert . Contains ( "PascalCase" , request ) ;
49+ StringAssert . Contains ( "camelCase" , request ) ;
50+ StringAssert . Contains ( "firstDictionary" , request ) ;
4751
48- //this._client.Get<ElasticSearchProject>(g=>g.);
4952 }
5053 }
5154}
0 commit comments