Skip to content

Commit 3e7176a

Browse files
committed
fix error
1 parent b9afe58 commit 3e7176a

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

src/FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests/Query/NorthwindMiscellaneousQueryFbTest.cs

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@
1616
//$Authors = Jiri Cincura (jiri@cincura.net)
1717

1818
using System;
19-
using System.Collections.Generic;
20-
using System.Linq;
2119
using System.Threading.Tasks;
2220
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Helpers;
2321
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.TestUtilities;
24-
using Microsoft.EntityFrameworkCore;
2522
using Microsoft.EntityFrameworkCore.Query;
26-
using Microsoft.EntityFrameworkCore.TestModels.Northwind;
2723
using Microsoft.EntityFrameworkCore.TestUtilities;
2824
using Xunit;
2925

@@ -168,38 +164,10 @@ public override Task Where_nanosecond_and_microsecond_component(bool async)
168164
return base.Where_nanosecond_and_microsecond_component(async);
169165
}
170166

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)
174170
{
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);
204172
}
205173
}

0 commit comments

Comments
 (0)