Skip to content

Commit d427e57

Browse files
committed
,
1 parent 5dfab80 commit d427e57

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

test/EntityFramework.DynamicLinq.Tests/EntityFramework.DynamicLinq.Tests.csproj

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Authors>Stef Heyenrath</Authors>
5-
<TargetFrameworks>net461;net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>net461;net8.0;net9.0;net10.0</TargetFrameworks>
66
<DebugType>full</DebugType>
77
<DefineConstants>EF;NET461</DefineConstants>
88
<AssemblyName>EntityFramework.DynamicLinq.Tests</AssemblyName>
@@ -58,20 +58,25 @@
5858
<Reference Include="System" />
5959
<Reference Include="Microsoft.CSharp" />
6060
<PackageReference Include="Microsoft.AspNet.Identity.EntityFramework" Version="2.2.1" />
61-
<PackageReference Include="LinqKit.EntityFramework" Version="1.1.15" />
61+
<PackageReference Include="LinqKit.EntityFramework" Version="1.3.9" />
6262
</ItemGroup>
6363

6464
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
6565
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
66-
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="8.1.6" />
66+
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="8.1.9" />
6767
</ItemGroup>
6868

6969
<ItemGroup Condition=" '$(TargetFramework)' == 'net9.0' ">
7070
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="9.0.0" />
71-
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="9.0.6" />
71+
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="9.0.9" />
7272
</ItemGroup>
7373

74-
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0' ">
74+
<ItemGroup Condition=" '$(TargetFramework)' == 'net10.0' ">
75+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.0" />
76+
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="10.0.9" />
77+
</ItemGroup>
78+
79+
<PropertyGroup Condition=" '$(TargetFramework)' == 'net8.0' or '$(TargetFramework)' == 'net9.0' or '$(TargetFramework)' == 'net10.0' ">
7580
<DefineConstants>$(DefineConstants);AspNetCoreIdentity</DefineConstants>
7681
</PropertyGroup>
7782

test/System.Linq.Dynamic.Core.SystemTextJson.Tests/Extensions/JsonDocumentExtensionsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Linq.Dynamic.Core.SystemTextJson.Extensions;
22
using System.Text;
33
using System.Text.Json;
4-
using FluentAssertions;
4+
using AwesomeAssertions;
55
using Xunit;
66

77
namespace System.Linq.Dynamic.Core.SystemTextJson.Tests.Extensions;

test/System.Linq.Dynamic.Core.Tests/DynamicClassTest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ public void DynamicClass_GetPropertyValue_Should_Work()
109109
value.Should().Be(test);
110110
}
111111

112+
#if NET461
113+
[Fact(Skip = "Does not work for .NET 4.6.1")]
114+
#else
112115
[Fact]
116+
#endif
113117
public void DynamicClass_GettingValue_ByIndex_Should_Work()
114118
{
115119
// Arrange
@@ -127,7 +131,11 @@ public void DynamicClass_GettingValue_ByIndex_Should_Work()
127131
value.Should().Be(test);
128132
}
129133

134+
#if NET461
135+
[Fact(Skip = "Does not work for .NET 4.6.1")]
136+
#else
130137
[Fact]
138+
#endif
131139
public void DynamicClass_SettingExistingPropertyValue_ByIndex_Should_Work()
132140
{
133141
// Arrange
@@ -151,7 +159,11 @@ public void DynamicClass_SettingExistingPropertyValue_ByIndex_Should_Work()
151159
value.Should().Be(newValue);
152160
}
153161

162+
#if NET461
163+
[Fact(Skip = "Does not work for .NET 4.6.1")]
164+
#else
154165
[Fact]
166+
#endif
155167
public void DynamicClass_SettingNewProperty_ByIndex_Should_Work()
156168
{
157169
// Arrange

test/System.Linq.Dynamic.Core.Tests/QueryableTests.Where.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ public void Where_Dynamic_Exceptions()
157157
Assert.Throws<ArgumentNullException>(() => qry.Where((string?)null));
158158
Assert.Throws<ArgumentException>(() => qry.Where(""));
159159
Assert.Throws<ArgumentException>(() => qry.Where(" "));
160-
var parsingConfigException = Assert.Throws<ArgumentException>(() => qry.Where("UserName == \"x\"", ParsingConfig.Default));
161-
Assert.Equal("The ParsingConfig should be provided as first argument to this method. (Parameter 'args')", parsingConfigException.Message);
160+
161+
Action act = () => qry.Where("UserName == \"x\"", ParsingConfig.Default);
162+
act.Should().Throw<ArgumentException>().WithMessage("The ParsingConfig should be provided as first argument to this method.*");
162163
}
163164

164165
[Fact]

0 commit comments

Comments
 (0)