Skip to content

Commit 77887d1

Browse files
committed
More tests.
1 parent 1d71634 commit 77887d1

File tree

2 files changed

+208
-0
lines changed

2 files changed

+208
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* The contents of this file are subject to the Initial
3+
* Developer's Public License Version 1.0 (the "License");
4+
* you may not use this file except in compliance with the
5+
* License. You may obtain a copy of the License at
6+
* https://github.com/FirebirdSQL/NETProvider/blob/master/license.txt.
7+
*
8+
* Software distributed under the License is distributed on
9+
* an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
10+
* express or implied. See the License for the specific
11+
* language governing rights and limitations under the License.
12+
*
13+
* All Rights Reserved.
14+
*/
15+
16+
//$Authors = Jiri Cincura (jiri@cincura.net)
17+
18+
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Helpers;
19+
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.TestUtilities;
20+
using Microsoft.EntityFrameworkCore;
21+
using Microsoft.EntityFrameworkCore.Query;
22+
using Microsoft.EntityFrameworkCore.TestUtilities;
23+
24+
namespace FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Query
25+
{
26+
public class GearsOfWarQueryFbFixture : GearsOfWarQueryRelationalFixture
27+
{
28+
protected override ITestStoreFactory TestStoreFactory => FbTestStoreFactory.Instance;
29+
30+
protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext context)
31+
{
32+
base.OnModelCreating(modelBuilder, context);
33+
ModelHelpers.SetStringLengths(modelBuilder, context);
34+
}
35+
}
36+
}
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
/*
2+
* The contents of this file are subject to the Initial
3+
* Developer's Public License Version 1.0 (the "License");
4+
* you may not use this file except in compliance with the
5+
* License. You may obtain a copy of the License at
6+
* https://github.com/FirebirdSQL/NETProvider/blob/master/license.txt.
7+
*
8+
* Software distributed under the License is distributed on
9+
* an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
10+
* express or implied. See the License for the specific
11+
* language governing rights and limitations under the License.
12+
*
13+
* All Rights Reserved.
14+
*/
15+
16+
//$Authors = Jiri Cincura (jiri@cincura.net)
17+
18+
using System.Diagnostics;
19+
using System.Linq;
20+
using System.Threading.Tasks;
21+
using FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Helpers;
22+
using Microsoft.EntityFrameworkCore.Query;
23+
using Microsoft.EntityFrameworkCore.TestModels.GearsOfWarModel;
24+
using Xunit;
25+
26+
namespace FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests.Query
27+
{
28+
public class GearsOfWarQueryFbTest : GearsOfWarQueryTestBase<GearsOfWarQueryFbFixture>
29+
{
30+
public GearsOfWarQueryFbTest(GearsOfWarQueryFbFixture fixture)
31+
: base(fixture)
32+
{ }
33+
34+
[NotSupportedOnFirebirdTheory]
35+
[MemberData(nameof(IsAsyncData))]
36+
public override Task DateTimeOffset_DateAdd_AddDays(bool isAsync)
37+
{
38+
return base.DateTimeOffset_DateAdd_AddDays(isAsync);
39+
}
40+
41+
[NotSupportedOnFirebirdTheory]
42+
[MemberData(nameof(IsAsyncData))]
43+
public override Task DateTimeOffset_DateAdd_AddHours(bool isAsync)
44+
{
45+
return base.DateTimeOffset_DateAdd_AddHours(isAsync);
46+
}
47+
48+
[NotSupportedOnFirebirdTheory]
49+
[MemberData(nameof(IsAsyncData))]
50+
public override Task DateTimeOffset_DateAdd_AddMilliseconds(bool isAsync)
51+
{
52+
return base.DateTimeOffset_DateAdd_AddMilliseconds(isAsync);
53+
}
54+
55+
[NotSupportedOnFirebirdTheory]
56+
[MemberData(nameof(IsAsyncData))]
57+
public override Task DateTimeOffset_DateAdd_AddMinutes(bool isAsync)
58+
{
59+
return base.DateTimeOffset_DateAdd_AddMinutes(isAsync);
60+
}
61+
62+
[NotSupportedOnFirebirdTheory]
63+
[MemberData(nameof(IsAsyncData))]
64+
public override Task DateTimeOffset_DateAdd_AddMonths(bool isAsync)
65+
{
66+
return base.DateTimeOffset_DateAdd_AddMonths(isAsync);
67+
}
68+
69+
[NotSupportedOnFirebirdTheory]
70+
[MemberData(nameof(IsAsyncData))]
71+
public override Task DateTimeOffset_DateAdd_AddSeconds(bool isAsync)
72+
{
73+
return base.DateTimeOffset_DateAdd_AddSeconds(isAsync);
74+
}
75+
76+
[NotSupportedOnFirebirdTheory]
77+
[MemberData(nameof(IsAsyncData))]
78+
public override Task DateTimeOffset_DateAdd_AddYears(bool isAsync)
79+
{
80+
return base.DateTimeOffset_DateAdd_AddYears(isAsync);
81+
}
82+
83+
[NotSupportedOnFirebirdTheory]
84+
[MemberData(nameof(IsAsyncData))]
85+
public override Task Where_datetimeoffset_date_component(bool isAsync)
86+
{
87+
return base.Where_datetimeoffset_date_component(isAsync);
88+
}
89+
90+
[NotSupportedOnFirebirdTheory]
91+
[MemberData(nameof(IsAsyncData))]
92+
public override Task Where_datetimeoffset_dayofyear_component(bool isAsync)
93+
{
94+
return base.Where_datetimeoffset_dayofyear_component(isAsync);
95+
}
96+
97+
[NotSupportedOnFirebirdTheory]
98+
[MemberData(nameof(IsAsyncData))]
99+
public override Task Where_datetimeoffset_day_component(bool isAsync)
100+
{
101+
return base.Where_datetimeoffset_day_component(isAsync);
102+
}
103+
104+
[NotSupportedOnFirebirdTheory]
105+
[MemberData(nameof(IsAsyncData))]
106+
public override Task Where_datetimeoffset_hour_component(bool isAsync)
107+
{
108+
return base.Where_datetimeoffset_hour_component(isAsync);
109+
}
110+
111+
[NotSupportedOnFirebirdTheory]
112+
[MemberData(nameof(IsAsyncData))]
113+
public override Task Where_datetimeoffset_millisecond_component(bool isAsync)
114+
{
115+
return base.Where_datetimeoffset_millisecond_component(isAsync);
116+
}
117+
118+
[NotSupportedOnFirebirdTheory]
119+
[MemberData(nameof(IsAsyncData))]
120+
public override Task Where_datetimeoffset_minute_component(bool isAsync)
121+
{
122+
return base.Where_datetimeoffset_minute_component(isAsync);
123+
}
124+
125+
[NotSupportedOnFirebirdTheory]
126+
[MemberData(nameof(IsAsyncData))]
127+
public override Task Where_datetimeoffset_month_component(bool isAsync)
128+
{
129+
return base.Where_datetimeoffset_month_component(isAsync);
130+
}
131+
132+
[NotSupportedOnFirebirdTheory]
133+
[MemberData(nameof(IsAsyncData))]
134+
public override Task Where_datetimeoffset_now(bool isAsync)
135+
{
136+
return base.Where_datetimeoffset_now(isAsync);
137+
}
138+
139+
[NotSupportedOnFirebirdTheory]
140+
[MemberData(nameof(IsAsyncData))]
141+
public override Task Where_datetimeoffset_second_component(bool isAsync)
142+
{
143+
return base.Where_datetimeoffset_second_component(isAsync);
144+
}
145+
146+
[NotSupportedOnFirebirdTheory]
147+
[MemberData(nameof(IsAsyncData))]
148+
public override Task Where_datetimeoffset_utcnow(bool isAsync)
149+
{
150+
return base.Where_datetimeoffset_utcnow(isAsync);
151+
}
152+
153+
[NotSupportedOnFirebirdTheory]
154+
[MemberData(nameof(IsAsyncData))]
155+
public override Task Where_datetimeoffset_year_component(bool isAsync)
156+
{
157+
return base.Where_datetimeoffset_year_component(isAsync);
158+
}
159+
160+
[GeneratedNameTooLong]
161+
public override void Project_collection_navigation_with_inheritance1()
162+
{
163+
base.Project_collection_navigation_with_inheritance1();
164+
}
165+
166+
[Fact(Skip = "See #15164 on EntityFrameworkCore.")]
167+
public override void Correlated_collection_with_top_level_FirstOrDefault()
168+
{
169+
base.Correlated_collection_with_top_level_FirstOrDefault();
170+
}
171+
}
172+
}

0 commit comments

Comments
 (0)