@@ -30,22 +30,25 @@ public void IndexParameters()
30
30
}
31
31
32
32
[ Test ]
33
- public void GetSupportsVersioning ( )
33
+ public void IndexingDictionaryRespectsCasing ( )
34
34
{
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 ) ;
38
45
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 ) ;
47
51
48
- //this._client.Get<ElasticSearchProject>(g=>g.);
49
52
}
50
53
}
51
54
}
0 commit comments