supress stream analyers for test projects
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup Condition="'$(IsTestProject)' == 'true' or '$(TestProjectAnalyserRules)' == 'true' ">
|
||||
<NoWarn>
|
||||
<!-- Things we need to test -->
|
||||
CS0618;CA1034;CA2201;CA1051;CA1040;CA1724;CA1065;
|
||||
CS0618;CA1034;CA2201;CA1051;CA1040;CA1724;CA1065;CA2022;CA1835;
|
||||
IDE0044;IDE0130;CA1508;
|
||||
<!-- Analysers that provide no tangeable value to a test project -->
|
||||
CA5394;CA2007;CA1852;CA1819;CA1711;CA1063;CA1816;CA2234;CS8618;CA1054;CA1810;CA2208;CA1019;CA1831;CA1515;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"sdk": {
|
||||
"version": "10.0.100",
|
||||
"version": "10.0.200",
|
||||
"rollForward": "latestMinor"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ProgressStreamTests : IDisposable
|
||||
.Returns(Task.FromResult(5));
|
||||
|
||||
// Act
|
||||
await _sut.ReadAsync(buffer, 0, buffer.Length);
|
||||
_ = await _sut.ReadAsync(buffer, 0, buffer.Length);
|
||||
|
||||
// Assert - Inner Stream Read was called
|
||||
_innerStreamMock.Verify(s => s.ReadAsync(buffer, 0, buffer.Length, CancellationToken.None), Times.Once);
|
||||
|
||||
Reference in New Issue
Block a user