Skip to content

Commit

Permalink
Test that GetSchemaTable returns null. Fixes #138
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Aug 20, 2020
1 parent e514987 commit 974d264
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/AdoNet.Specification.Tests/DataReaderTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -828,13 +828,7 @@ public virtual void GetChars_throws_after_Delete()
public virtual void GetInt64_throws_after_Delete() => Test_X_after_Delete(x => Assert.Throws<InvalidOperationException>(() => x.GetInt64(0)));

[Fact]
public virtual void GetSchemaTable_is_empty_after_Delete() => Test_X_after_Delete(x =>
{
var table = x.GetSchemaTable();
Assert.NotNull(table);
Assert.Empty(table.Rows);
Assert.Empty(table.Columns);
});
public virtual void GetSchemaTable_is_null_after_Delete() => Test_X_after_Delete(x => Assert.Null(x.GetSchemaTable()));

[Fact]
public virtual void GetStream_throws_after_Delete() => Test_X_after_Delete(x => Assert.Throws<InvalidOperationException>(() => x.GetStream(0)));
Expand Down

0 comments on commit 974d264

Please sign in to comment.