File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
src/Tests/Nest.Tests.Integration/Reproduce Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ using System . Text ;
2+ using Nest . Tests . MockData ;
3+ using Nest . Tests . MockData . Domain ;
4+ using NUnit . Framework ;
5+ using System ;
6+ using System . Collections . Generic ;
7+ using System . Linq ;
8+
9+ namespace Nest . Tests . Integration . Reproduce
10+ {
11+ [ TestFixture ]
12+ public class Reproduce769Tests : IntegrationTests
13+ {
14+ [ Test ]
15+ public void SearchWithTypesAndIndicesSetShouldNotThrow_WithNoDefaultIndex ( )
16+ {
17+ Assert . DoesNotThrow ( ( ) =>
18+ {
19+ var client = new ElasticClient ( ) ;
20+ client . Search < dynamic > ( new SearchRequest
21+ {
22+ Indices = new IndexNameMarker [ ] { "index" } ,
23+ Types = new TypeNameMarker [ ] { "type" }
24+ } ) ;
25+ } ) ;
26+ }
27+
28+ [ Test ]
29+ public void EmptySearch_NoDefaultIndex_DoesNotThrow ( )
30+ {
31+ Assert . DoesNotThrow ( ( ) =>
32+ {
33+ var client = new ElasticClient ( ) ;
34+ client . Search < dynamic > ( new SearchRequest
35+ {
36+ } ) ;
37+ } ) ;
38+ }
39+ }
40+ }
You can’t perform that action at this time.
0 commit comments