Skip to content

Commit 5df947b

Browse files
committed
Remove tests that depend on casting.
These are important to test (to know how these casts are handled by different connectors) but should probably be brought back in their own test suite.
1 parent f01a32b commit 5df947b

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

src/AdoNet.Specification.Tests/DataReaderTestBase.cs

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ public virtual void GetBoolean_works()
5555
r => r.GetBoolean(0),
5656
true);
5757

58-
[Fact]
59-
public virtual void GetByte_works()
60-
=> GetX_works(
61-
"SELECT 1;",
62-
r => r.GetByte(0),
63-
(byte) 1);
64-
6558
[Fact]
6659
public virtual void GetBytes_works()
6760
{
@@ -100,13 +93,6 @@ public virtual void GetChars_works()
10093
}
10194
}
10295

103-
[Fact]
104-
public virtual void GetDateTime_works_with_text()
105-
=> GetX_works(
106-
"SELECT '2014-04-15 10:47:16';",
107-
r => r.GetDateTime(0),
108-
new DateTime(2014, 4, 15, 10, 47, 16));
109-
11096
[Fact]
11197
public virtual void GetDateTime_throws_when_null()
11298
=> GetX_throws_when_null(r => r.GetDateTime(0));
@@ -254,52 +240,10 @@ public virtual void GetFieldType_throws_when_ordinal_out_of_range()
254240
public virtual void GetFieldType_throws_when_closed()
255241
=> X_throws_when_closed(r => r.GetFieldType(0));
256242

257-
[Fact]
258-
public virtual void GetFloat_works()
259-
=> GetX_works(
260-
"SELECT 3",
261-
r => r.GetFloat(0),
262-
3);
263-
264-
[Fact]
265-
public virtual void GetGuid_works_when_blob()
266-
=> GetX_works(
267-
"SELECT X'0E7E0DDC5D364849AB9B8CA8056BF93A';",
268-
r => r.GetGuid(0),
269-
new Guid("dc0d7e0e-365d-4948-ab9b-8ca8056bf93a"));
270-
271-
[Fact]
272-
public virtual void GetGuid_works_when_text()
273-
=> GetX_works(
274-
"SELECT 'dc0d7e0e-365d-4948-ab9b-8ca8056bf93a';",
275-
r => r.GetGuid(0),
276-
new Guid("dc0d7e0e-365d-4948-ab9b-8ca8056bf93a"));
277-
278243
[Fact]
279244
public virtual void GetGuid_throws_when_null()
280245
=> GetX_throws_when_null(r => r.GetGuid(0));
281246

282-
[Fact]
283-
public virtual void GetInt16_works()
284-
=> GetX_works(
285-
"SELECT 1;",
286-
r => r.GetInt16(0),
287-
(short) 1);
288-
289-
[Fact]
290-
public virtual void GetInt32_works()
291-
=> GetX_works(
292-
"SELECT 1;",
293-
r => r.GetInt32(0),
294-
1);
295-
296-
[Fact]
297-
public virtual void GetInt64_works()
298-
=> GetX_works(
299-
"SELECT 1;",
300-
r => r.GetInt64(0),
301-
1L);
302-
303247
[Fact]
304248
public virtual void GetInt64_throws_when_null()
305249
=> GetX_throws_when_null(

0 commit comments

Comments
 (0)