Commit 7b85ec1
committed
test(MockFileStream): use Read return value to satisfy CA2022
The shared-contents regression test ignored the byte count returned by
Stream.Read, which the analyzer flags as CA2022 (inexact read) and the
build treats as an error. Capture the count and assert it equals the
requested length.1 parent 0f67cc9 commit 7b85ec1
1 file changed
Lines changed: 2 additions & 1 deletion
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments