Skip to content

Commit f1ee2d7

Browse files
SingleResultBeforeMapTests: Assert.IsType with exactMatch false instead of IsAssignableFrom (xUnit2032) (#130)
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent 594cc6e commit f1ee2d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Tests/Open.Database.Extensions.Core.Tests/SingleResultBeforeMapTests.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ public static void TheExpressiveView_ReportsTheCommandsUseAsyncRead()
702702
RecordingAsyncExecuteReader reading = Recording(useAsyncRead: true);
703703
FakeExecuteReader other = Expressive(1, out _);
704704

705-
Assert.True(Assert.IsAssignableFrom<IExecuteReaderAsync>(reading.SingleResult()).UseAsyncRead);
706-
Assert.False(Assert.IsAssignableFrom<IExecuteReaderAsync>(other.SingleResult()).UseAsyncRead);
705+
Assert.True(Assert.IsType<IExecuteReaderAsync>(reading.SingleResult(), exactMatch: false).UseAsyncRead);
706+
Assert.False(Assert.IsType<IExecuteReaderAsync>(other.SingleResult(), exactMatch: false).UseAsyncRead);
707707
}
708708

709709
[Fact]

0 commit comments

Comments
 (0)