Skip to content

Commit 9c49852

Browse files
committed
added tests to proof #769 is now fixed in the develop branch
1 parent 0bcccc1 commit 9c49852

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

0 commit comments

Comments
 (0)