|
16 | 16 | //$Authors = Jiri Cincura (jiri@cincura.net) |
17 | 17 |
|
18 | 18 | using System; |
19 | | -using System.Collections.Generic; |
20 | | -using System.Linq; |
21 | 19 | using System.Threading.Tasks; |
22 | 20 | using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Helpers; |
23 | 21 | using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.TestUtilities; |
24 | | -using Microsoft.EntityFrameworkCore; |
25 | 22 | using Microsoft.EntityFrameworkCore.Query; |
26 | | -using Microsoft.EntityFrameworkCore.TestModels.Northwind; |
27 | 23 | using Microsoft.EntityFrameworkCore.TestUtilities; |
28 | 24 | using Xunit; |
29 | 25 |
|
@@ -168,38 +164,10 @@ public override Task Where_nanosecond_and_microsecond_component(bool async) |
168 | 164 | return base.Where_nanosecond_and_microsecond_component(async); |
169 | 165 | } |
170 | 166 |
|
171 | | - [ConditionalFact] |
172 | | - |
173 | | - public override async Task Contains_over_concatenated_columns_both_fixed_length(bool async) |
| 167 | + [NotSupportedByProviderTheory] |
| 168 | + [MemberData(nameof(IsAsyncData))] |
| 169 | + public override Task Contains_over_concatenated_columns_both_fixed_length(bool async) |
174 | 170 | { |
175 | | - using var context = _fixture.CreateContext(); |
176 | | - |
177 | | - // Coleção local com valores concatenados |
178 | | - var ids = new[] { "ALFKIContactName", "ANATRContactName" }; |
179 | | - |
180 | | - var query = context.Customers |
181 | | - .Where(c => ids.Contains(c.CustomerID.Trim() + c.ContactName.Trim())); |
182 | | - |
183 | | - List<Customer> customers; |
184 | | - if (async) |
185 | | - { |
186 | | - // Materializa assíncrono sem ToListAsync() |
187 | | - customers = new List<Customer>(); |
188 | | - await foreach (var c in query.AsAsyncEnumerable()) |
189 | | - { |
190 | | - customers.Add(c); |
191 | | - } |
192 | | - } |
193 | | - else |
194 | | - { |
195 | | - customers = query.ToList(); |
196 | | - } |
197 | | - |
198 | | - |
199 | | - // Valida que os clientes corretos foram retornados |
200 | | - Assert.Equal(2, customers.Count); |
201 | | - Assert.Contains(customers, c => c.CustomerID == "ALFKI"); |
202 | | - Assert.Contains(customers, c => c.CustomerID == "ANATR"); |
203 | | - |
| 171 | + return base.Contains_over_concatenated_columns_both_fixed_length(async); |
204 | 172 | } |
205 | 173 | } |
0 commit comments