Skip to content

Commit

Permalink
https://github.com/IharYakimush/comminity-data-odata-linq/issues/31
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihar Yakimush authored and Ihar Yakimush committed Jan 31, 2019
1 parent 326f558 commit e09ef0b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="Microsoft.OData.Core" Version="7.4.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.console" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
Expand Down
24 changes: 24 additions & 0 deletions Community.Data.OData.Linq.xTests/Issues/Issue31.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

namespace Community.OData.Linq.xTests.Issues
{
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

using Community.OData.Linq.xTests.SampleData;

using Microsoft.OData;

using Xunit;

public class Issue31
{
[Fact]
public void WhereWithInThrowException()
{
Exception exc = Assert.Throws<ODataException>(() => SimpleClass.CreateQuery().OData().Filter("Id in (1,100)").ToArray());
Assert.Contains("Syntax error", exc.Message);
}
}
}

0 comments on commit e09ef0b

Please sign in to comment.