Commit 90860596 authored by mgravell's avatar mgravell

redisearch: ignore case changes in exceptions

parent 9c076e27
...@@ -50,7 +50,7 @@ public void Search() ...@@ -50,7 +50,7 @@ public void Search()
Assert.True(cl.DropIndex()); Assert.True(cl.DropIndex());
var ex = Assert.Throws<RedisServerException>(() => cl.Search(new Query("hello world"))); var ex = Assert.Throws<RedisServerException>(() => cl.Search(new Query("hello world")));
Assert.Equal("Unknown Index name", ex.Message); Assert.Equal("Unknown Index name", ex.Message, ignoreCase: true);
} }
[Fact] [Fact]
...@@ -549,7 +549,7 @@ public void TestLanguage() ...@@ -549,7 +549,7 @@ public void TestLanguage()
cl.DeleteDocument(d.Id); cl.DeleteDocument(d.Id);
var ex = Assert.Throws<RedisServerException>(() => cl.AddDocument(d, options)); var ex = Assert.Throws<RedisServerException>(() => cl.AddDocument(d, options));
Assert.Equal("Unsupported language", ex.Message); Assert.Equal("Unsupported language", ex.Message, ignoreCase: true);
} }
[Fact] [Fact]
...@@ -557,7 +557,7 @@ public void TestDropMissing() ...@@ -557,7 +557,7 @@ public void TestDropMissing()
{ {
Client cl = GetClient(); Client cl = GetClient();
var ex = Assert.Throws<RedisServerException>(() => cl.DropIndex()); var ex = Assert.Throws<RedisServerException>(() => cl.DropIndex());
Assert.Equal("Unknown Index name", ex.Message); Assert.Equal("Unknown Index name", ex.Message, ignoreCase: true);
} }
[Fact] [Fact]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment